Ila (Hinduism)
Ila (Sanskrit: इल) or Ilā (Sanskrit: इला) is a deity in Hindu legends, known for their sex changes. As a man, he is known as Ila or Sudyumna and as a woman, is called Ilā. Ilā is considered the chief progenitor of the Lunar dynasty of Indian kings – also known as the Aillas ("descendants of Ilā"). While many versions of the tale exist, Ila is usually described as a daughter or son of Vaivasvata Manu and thus the sibling of Ikshvaku, the founder of the Solar Dynasty. In versions in which Ila is born female, she changes into a male form by divine grace soon after her birth.
Ila (Sanskrit: इल) or Ilā (Sanskrit: इला) is a deity in Hindu legends, known for their sex changes. As a man, he is known as Ila or Sudyumna and as a woman, is called Ilā. Ilā is considered the chief progenitor of the Lunar dynasty of Indian kings – also known as the Aillas ("descendants of Ilā").
While many versions of the tale exist, Ila is usually described as a daughter or son of Vaivasvata Manu and thus the sibling of Ikshvaku, the founder of the Solar Dynasty. In versions in which Ila is born female, she changes into a male form by divine grace soon after her birth. After mistakenly entering a sacred grove as an adult, Ila is either cursed to change his/her gender every month or cursed to become a woman. As a woman, Ilā married Budha, the god of the planet Mercury and the son of the lunar deity Chandra (Soma), and bore him a son called Pururavas, the father of the Lunar dynasty. After the birth of Pururavas, Ilā has transformed into a man again and fathered three sons.
In the Vedas, Ilā is praised as Idā (Sanskrit: इडा), goddess of speech, and described as the mother of Pururavas.
The tale of Ila's transformations is told in the Puranas as well as the Indian epic poems, the Ramayana and the Mahabharata.

Birth
According to the Linga Purana and the Mahabharata, Ilā was born as the eldest daughter of Vaivasvata Manu, the progenitor of mankind, and his wife Shraddha. However, the parents desired a son and so prayed and performed austerities to propitiate the deities Mitra and Varuna, who changed Ilā's gender. The boy was named Sudyumma. The Bhagavata Purana, the Devi-Bhagavata Purana, the Kurma Purana, the Harivamsa, the Markandeya Purana and the Padma Purana (referred to as "Bhagavata Purana et al. texts" further)  narrate a variant: Ila's parents could not have any children for a long time and approached the sage Agastya for a solution. The sage performed a yajna (fire sacrifice) dedicated to Mitra and Varuna to attain a son for the couple. Due to either an error in the ritual or a failure to offer the appropriate sacrifice, Mitra and Varuna instead sent a daughter to the couple. In one version, the couple supplicated the deities, who transformed Ilā's gender. In another version, this transformation happens after the erroneous hymns are rectified and the son is called Ila. According to a variant, Shraddha wished for a daughter; Vashistha heeded her wish while performing the sacrifice and thus, a daughter was born. However, Manu desired a son so Vashistha appealed to Vishnu to change the gender of his daughter. Ilā was renamed Sudhyumna. The accounts describe Ila as either the eldest or the youngest child of Manu. As the child of Manu, Ila had nine brothers, the most notable was Ikshvaku, the founder of the Solar dynasty. As the son of Manu, Ila is the grandson of Surya. According to another account found in the Vayu Purana and the Brahmanda Purana, Ilā was born female and remained female.In the Ramayana, Ila is born as a son of Kardama, the Prajapati born of the god Brahma's shadow. Ila's tale is told in the Uttara Kanda chapter of the Ramayana, while describing the greatness of the Ashvamedha – the horse sacrifice.

Curse and marriage to Budha
In the Ramayana, the Linga Purana and the Mahabharata, Ila grows to become the king of Bahlika. While hunting in a forest, Ila accidentally trespassed Sharavana ("Forest of Reeds"), the sacred grove of the goddess Parvati, the consort of the god Shiva. Upon entering Sharavana, all-male beings except for Shiva, including trees and animals, are transformed into females. One legend tells that a female yakshini disguised herself as a deer and purposefully led Ila to the grove in order to save her husband from the king. The Linga Purana and the Mahabharata emphasize the sex change of Ila to be a deliberate act of Shiva to start the Lunar dynasty. The Bhagavata Purana et al. texts tell that Ila's entire entourage, as well as his horse, also changed their genders.According to the Ramayana, when Ila approached Shiva for help, Shiva laughed with scorn but the compassionate Parvati reduced the curse and allowed Ila to switch genders every month. However, as a male, he would not remember his life as a female and vice versa. While Ilā roamed the forest in her new form with her female attendants, Budha, the god of the planet Mercury and the son of the moon-god Chandra, noticed her. Although he had been practising asceticism, Ilā's beauty caused him to fall in love with her at first sight. Budha turned Ilā's attendants into Kimpurushas (hermaphrodite, lit. "is it a man?") and ordered them to run away, promising that they would find mates as Ilā had.Ilā married Budha and spent an entire month with him and consummated the marriage. However, Ilā woke one morning as Sudyumna and remembered nothing about the past month. Budha told Ila that his retinue had been killed in a rain of stones and convinced Ila to stay with him for a year. During each month she spent as a woman, Ilā had a good time with Budha. During each month as a man, Ila turned to pious ways and performed austerities under the guidance of Budha. In the ninth month, Ilā gave birth to Pururavas, who grew to become the first king of the Lunar dynasty. Then, as per the advice of Budha and Ila's father Kardama, Ila pleased Shiva and Shiva restored Ila's masculinity permanently.Another legend from the Vishnu Purana credits Vishnu of restoring Ilā's manhood as Sudyumma.  The Bhagavata Purana et al. texts tell that after Pururavas's birth, the nine brothers of Ila – by horse-sacrifice – or the sage Vasistha – the family priest of Ila – pleased Shiva to compel him to give the boon of alternate month manhood to Ila, turning him into a Kimpurusha. The Linga Purana and the Mahabharata record the birth of Pururavas, but do not narrate the end of Ila's alternating gender condition. In fact, the Mahabharata describes Ilā to be the mother as well as the father of Pururavas. According to another account found in the Vayu Purana and the Brahmanda Purana, Ilā was born female, married Budha, then was transformed into a male called Sudyumna. Sudyumna was then cursed by Parvati and transformed once again into a female, but became a man once again through Shiva's boon.In almost all versions of the tale, Ila wants to live as a man, but in the Skanda Purana, Ila desires to be a woman. The king Ela (Ila) entered Parvati's grove at Sahya mountain and became the woman Ilā. Ilā wished to remain a woman and serve Parvati (Gauri) and Ganga, the goddess of the Ganges river. However, the goddesses dissuaded him. Ilā bathed in a sacred pool and returned as Ela, bearded and deep-voiced.

Later life and descendants
The descendants of Ilā through Pururavas are known as Ailas after Ilā or as the Lunar dynasty (Chandravamsha) due to their descent from Budha, the son of the moon-god Chandra. Most versions of the tale call Ilā the father as well as the mother of the Ailas. The Linga Purana and the Mahabharata, in which Sudyumma's curse does not end, state that as a male, Sudyumma also bore three sons named Utkala, Gaya and Vinatashva (also known as Haritashva and Vinata). The three sons ruled the kingdom for their father as Sudyumma was unable to do so himself due to his alternating gender. The sons and their principalities are called the Saudyumnas. Utkala, Gaya, and Vinatashva ruled Utkala country, Gaya, and eastern regions including northern Kurus respectively. With the assistance of the family priest Vasistha, Sudyumma regained control of the entire kingdom. He was succeeded by Pururavas.In the Matsya Purana, Ila was disinherited after becoming a female or kimpurusha. Ila's father passed his inheritance directly to Pururavas, ignoring the three sons Ila-Sudyumma bore as a male. Pururavas ruled from Pratishtanapura (present-day Allahabad), where Ila stayed with him. The Ramayana says that having returned to manhood, Ila ruled Pratishtana while his son Shashabindu ruled over Bahlika. The Devi-Bhagavata Purana tells that as a man Sudyumma governed the kingdom and as a woman remained indoors. His subjects were disturbed by his sex changes and did not respect him as they once had. When Pururavas attained adulthood, Sudyumma left his kingdom to Pururavas and went to the forest for penance. The sage Narada told Sudyumma a nine-syllable mantra, Navakshara, which would please the Supreme Goddess. Pleased with his austerities, the Goddess emerged before Sudyumma, who was in his female form Ilā. Sudyumma praised the Goddess, who merged the king's soul with herself and thus, Ilā gained salvation.The Bhagavata Purana, the Devi-Bhagavata Purana and the Linga Purana declare that Ila ascended to heaven with both male and female anatomy. Ila is considered the chief progenitor of the Lunar Dynasty through Pururavas and of the Solar Dynasty through his brother Iksavaku and sons Utkala, Gaya, and Vinatashva. The marriage of Ilā, a descendant of the Sun, and Budha, the son of the Moon, is the first union of the solar and lunar races recorded in the scriptures.

In Vedic literature
In Vedic literature, Ilā is also known as Idā. Idā, in the Rigveda, signifies food and refreshment, personified as the goddess of speech. Ilā-Idā is also associated with Sarasvati, the goddess of knowledge. Ilā-Idā is mentioned a number of times in the Rigveda, mostly in the hymns known as Āprīsūktas. She is often mentioned along with Sarasvati and Bharati (or Mahi) and Pururavas is described as her son.  Idā is the instructor of Manu, in performing ritual sacrifices. According to Sayana – a commentator on the Vedas – she presides over the Earth.
Rig Veda 3.123.4 mentions that "land of Ila" was situated nearby banks of Sarasvati river.
Rigveda 3.29.3 describes Agni as the son of Ila.In the Shatapatha Brahmana, Manu performed a fire-sacrifice in order to have children. Idā emerged from the sacrifice. She was claimed by Mitra-Varuna, but she lived with Manu and together they initiated the race of Manu. In this text, Idā is the goddess of the sacrificial meal. She is described as the Mānavi (daughter of Manu) and Ghṛtapadī (with the ghee-dripping foot) and she is represented by a cow, also known as Idā during a sacrifice. Pururavas is mentioned as the son of Ilā in the text.

Notes
References
Citations
Sources
Doniger, Wendy (2002). "Transformation of Subjectivity and Memory in the Mahabharata and the Ramayana". In Shulman, David Dean (ed.). Self and self-transformation in the history of religions. Oxford University Press. ISBN 0-19-514450-3.
O'Flaherty, Wendy Doniger (182) [1980]. Women, androgynes, and other mythical beasts. University of Chicago Press. ISBN 978-0-226-61850-0.
Meyer, Johann Jakob (1989) [1971]. Sexual life in ancient India. Delhi: Motilal Banarsidass. ISBN 978-81-208-0638-2.
Pattanaik, Devdutt (2001). The man who was a woman and other queer tales of Hindu lore. Routledge. ISBN 978-1-56023-181-3.
Thapar, Romila (2013), The Past Before Us, Harvard University Press, ISBN 978-0-674-72651-2
Vanita, Ruth; Kidwai, Saleem (2001). Same-sex love in India: readings from literature and history. Palgrave Macmillan. ISBN 978-0-312-29324-6.

External links
 Media related to Ila (Hinduism) at Wikimedia Commons