Mara is based on a similarly named demon from Buddhist mythology alongside a principle concept. The demon was the one responsible for trying to sabotage Buddha's enlightenment, and the concept is used to refer to things that try and get us to stray from our path towards enlightenment.