The Rivalry
Devayani, daughter of the great Asura-teacher Shukracharya, and Sharmishtha, princess of the asura king Vrishaparva, were companions in a complicated friendship - both brilliant, both beautiful, both proud.
One day at a river, there was a dispute over garments. In the altercation, Sharmishtha pushed Devayani into a dry well.
She left her there and walked away.
The Rescue
King Yayati, a great and virtuous king, passed by while hunting. He heard a voice in the well and drew Devayani out.
He took her hand to help her up.
Devayani, daughter of a great sage, scholar of dharmic propriety, looked at the king's hand holding hers - an unmarried man touching an unmarried woman - and said: "By this, we are as good as married."
Yayati was not in a position to refuse the daughter of Shukracharya.
The Marriage - and Its Terms
Devayani married Yayati on one condition, delivered through her father: Sharmishtha, who had wronged her, would come to her household as a servant.
Vrishaparva, to save his kingdom, agreed. Sharmishtha came as a servant with a thousand maids.
Sharmishtha's Strategy
Sharmishtha asked Yayati to give her a child.
Yayati, bound by dharma and attracted by her, agreed in secret. They had three sons. Devayani eventually discovered the secret.
Shukracharya's Curse
Shukracharya, furious at the betrayal of his daughter, cursed Yayati with premature old age. Yayati begged for relief. Shukracharya modified the curse: if one of his sons would take his old age voluntarily, Yayati could have their youth.
Four sons refused. The fifth - Puru, Sharmishtha's son - accepted.
Puru is an ancestor of the Pandavas.
The story of the Mahabharata's central dynasty passes through Sharmishtha.