Introduction
Haryashva is a king of the Ikshvaku dynasty of Ayodhya, who is best known in the Mahabharata as the first husband of Madhavi. Ancient lists of the Ikshvaku kings differ in names and order, so his exact place in the line varies by text.
Family
The debt of Galava
The sage Galava owed his guru Vishwamitra a difficult gurudakshina (teacher's fee): eight hundred rare horses, each white with one black ear. Unable to find them himself, Galava was given Madhavi, the daughter of King Yayati, who had the boon of regaining her virginity after each childbirth -- allowing her to be lent, in succession, to several kings in exchange for horses toward the required number, each union producing one son.
Madhavi
Haryashva was the first of these kings. He married Madhavi for a time in exchange for two hundred such horses, and their son was Vasumanas, who later inherited his father's throne.