The Mahasiddhas are actual people who acquired magical powers from their spiritual practice. A mahasiddha is a bodhisattva, someone who can enter "nirvana" whenever they want, but instead choose to stay in "samsara" to help others.