Mayasura

Maya (Sanskrit: मय) or Mayāsura (मयासुर) is a figure in Hindu mythology, described as the king of the Danavas, a race of beings descending from Kashyapa and his wife Danu.

He is known for his architectural expertise, credited with creating the Mayasabha (Hall of Illusions) for the Pandavas and Tripura (Three cities) for the sons of Tarakasura.

[1] Mayasura had befriended a Nāga named Takshaka and lived with him in the area of Khandavaprastha along with his family and friends, but when the Pandavas came there after the partition of Hastinapura, Arjuna burnt the entire forest, forcing Takshaka to flee and killing everyone else.

Krishna was ready to forgive him and in return, Mayasura built a grand palace named Mayasabha, where the Pandavas would perform the Rajasuya Yagna.

[3] They had two sons — Mayavi and Dundubhi — and a daughter Mandodari, who later married Ravana, the Rakshasa ruler of Lanka and the main antagonist of the epic.