In Indian culture, the Agnivanshi are people who claim descent from Agni, the Vedic god of fire. The Agnivanshi lineage is one of the lineages among the Kshatriyas, the others being the Suryavanshi (descended from Surya, the sun god) and the Chandravanshi (descended from Chandra, the moon god). According to medieval legends, there are four Agnivanshi clans: Chauhans (Chahamanas), Pratihar (Pratiharas), Parmars (Paramaras) and Solankis (Chaulukyas).
Apart from Kshatriyas, several other Indian communities and dynasties have legends of fire-born ancestry. Alf Hiltebeitel theorises that the fire-lineage legends signify a new class of Kshatriya warriors, as opposed to the earlier warriors who claimed descent from the solar and lunar lineages mentioned in the ancient texts. Among the clans now known as the Rajputs, the legend might have been invented by Padmagupta, a 10th-century court poet of the Paramara dynasty. His Nava-sahasanka-charita is the earliest source claiming an Agnivanshi origin for the Paramaras. He might have been motivated by the fact that the Paramaras were the only royal family in their region without a mythical account of heroic or divine origin. The 16th century Rajput bards might have extended the legend to include other imperial dynasties, in order to foster Rajput unity against Muslims.