Nala, King of Nishadha, was chosen by Damayanti as her husband in the swayamvara, a function in which the bride selects her husband from among the invitees, in preference to even the gods who came to marry her. All the gods left the place praising the qualities of Nala and blessing the couple. But the Demon Kali to test Nala vowed to divert Nala from the path of Dharma, or path of righteousness and virtue, and to separate Nala and Damayanti. Such was the purity of Nala that it took twelve years for Kali to find a small fault in him and bewitch his soul. After being influenced by evil, Nala played a game of dice with his brother Pushkara and gambled away his wealth and the kingdom to him. Nala and Damayanti had to live in forests for three years where they were separated. Nala, under the influence of Kali, deserted Damayanti and went away. In the forest, Nala saved Karkotaka Naga (Snake Person) from a fire. The Karkotaka Naga with its poison transformed Nala into an ugly dwarf named Bahuka and advised him to serve King Rituparna of Ayodhya. He also gave Nala a magic garment which would restore him to his original form. Nala went to King Rituparna and served him as a cook. Damayanti rent a riddle to Rituparna to confirm Nala’s presence. On hearing that Damayanti was going to marry another husband, Bahuka took Rituparna and drove the chariot fast. He reached to Vidarbha from Ayodhya in a few hours. Damayanti recognized Nala and he came to his original form. Nala taught his skill to Rituparna, and the latter taught Nala to magically control dice. After undergoing many hardships, in spite of which Nala never deviated from the path of righteousness, he overcame the influence of Kali and regained his kingdom by defeating Pushkara in a rematch. Nala and Damayanti were reunited and lived happily thereafter. Kali offered Nala a boon when she left him. Nala sought the boon that whoever read his story would not be unduly affected by the malefic effects of Kali.