Srikrishna offers mayasura to build a palace to Pandavas
In the Mahabharat
Mayasura had befriended a snake named Takshaka and lived with him in the area of Khandavprastha and Kurukshetra. But when the Pandavas came there after the partition of Hastinapur, Arjun burnt the entire forest, forcing Takshaka to flee away. So, Mayasura decided to surrender to the Pandavas. Krishna was ready to forgive him and for this act, Mayasura built a very grand palace named Maya-Mahal, where the Pandavas would perform the Rajsuya Yagna.
In the Ramāyana
He built his capital and called it Maya Rashtra. MayaAsura is mentioned in Uttar-kãņḍa of Rāmāyaṇa and here he is said to be the son of Diti (wife of Kashyapa, a SaptaRisi), He is the father of Mandodari, the beautiful wife of Ravana, the king of Lanka.
- Uttara Ramayana https://archive.org/stream/TheRamayanaUttaraKandam/The_Ramayana_djvu.txt
- Devahish Dasgupta. Tourism Marketing. Pearson Education India. p. 20. ISBN 978-81-317-3182-6. Retrieved 29 January 2012.