Chandravanshi King Ayu had a king named Elakha in nineth generation, whose son was Nagas, from whom started Nagavansh.
Prajapati Daksha’s daughter was Sarma, who was wife of Suryavanshi king Kashyapa, who gave birth to son of Naga clan from whom started the Nagavansh.
According to a myth of Mahabharata, Nagas are offshoot of Kadru, the earth mother goddess, daughter of Prajapati from Rishi Kashyapa. Dilip Singh Ahlawat has mention it as one of the ruling Jat clans in Central Asia. The Nagavansha was a part of greater Jat Sangha as explained below in Hindi language. Some Jat clans developed their Vansha according to their system of worship such as Devas and Nāgas. In Devas the worshippers of Indra were known as Aindra, worshippers of Varun as Vārun, worshippers of Mitra as Maitreya or Mitrā, worshippers of Shiva as Shivi or Shaivya, worshippers of Marut as Mārut, worshippers of Gandharva as Gāndharva, worshippers of Shesha as Sheshma, worshippers of Karka as Karkotaka, worshippers of Nāga as Nāgā or Nāgil.