Sudyumna was a King of the Solar dynasty. In the Hindu mythology it is mentioned that Sudyumna is the son of the Manu Vaivasvata.
Birth of Sudyumna
Manu Vaivasvata was sonless before Ikshwaku"s birth. But by the grace of the great Sage Vasistha, he performed a Yajna to satisfy Mitra and Varuna. Then, although Vaivasvata Manu wanted a son, by the desire of his wife he got a daughter named Ila. Manu, however, was not satisfied with the daughter. Consequently, for Manu"s satisfaction, the great sage Vasistha prayed for Ila to be transformed into a boy, and his prayer was fulfilled. Thus Ila became a beautiful young man named "Sudyumna".
Legend of Sudyumna
Once, he went hunting in the forest, and was separated from his entourage. Tired, and exhausted, he waded into a pool in the forest along with his horse and quenched his thirst. Unfortunately, that pool had been enchanted by Lord Shiva, so that any male who enters it would become a female. Under the curse of Lord Shiva, Sudyumna was again turned into a woman called "Ila" and his horse became a mare.
He (she) took refuge at the hermitage of Budha that was nearby. The sage became infatuated with her, and she reciprocated his affection. They had a son named Pururavas. Ultimately, the King was freed from his curse and returned to his kingdom, along with his son Pururavas, who is the first king of the Chandra dynasty or the Lunar race.
According to the legends in Bhagavata Purana and Devi Bhagavata, Sage Vasistha; the preceptor of Sudyumna prayed to Lord Shiva, alleviated the curse by making it such that the King would be woman for a month and man for another in alternation.
Descendants of Sudyumna
According to the Bhagavata Purana, Sudyumna as "Ila" was the mother of Pururavas. By favour of Lord Vishnu the male form was again recovered, and Sudyumna became the father of three sons named Utkala, Gaya and Vimala. These sons inherited the southern part of his kingdom. His son Pururavas inherited the major portion of the empire and thereafter, Sudyumna took the order of Vanaprastha life. This legend evidently has reference to the origin of the Lunar Race of kings.