From Manu descended two dynasties of kings: the solar and the lunar. Unlike the lunar, the solar dynasty was upright and did not let desire override good sense. Upright Ram belongs to the solar line of kings and his story is told in the Ramayana. Self-indulgent Yayati belongs to the lunar line of kings. His descendants are the Bharatas whose story is told in the Mahabharata.