In 1770, the Rohilla chief Ḥāfiz̤ Raḥmat Ḵẖān wrote a text called Ḵẖulāṣat ul-Ansāb, focusing on the genealogical and ancestral history of the Rohilla Afghans. This article analyses the text as a glimpse into the emotions he went through—such as anxiety, uncertainty, confidence, determination, and strength—as the ruler of a small principality founded by a new political group in the competitive political milieu of eighteenth-century South Asia. It studies the textual expression of these emotions he experienced during a period that brought both challenges and opportunities for the Rohilla Afghans. It firstly shows how the text served as a means of creating unity among the Rohilla Afghans by elaborating an origin story, adapting them to new circumstances, and legitimising the emerging Rohilla state. Secondly, it discusses how Ḥāfiz̤ Raḥmat aimed to rectify the negative portrayals of the Afghans by Mughal chroniclers and enhance Afghan prestige in northern India by creating a haloed genealogy. Finally, it explains how the text claimed religious legitimacy for the Rohilla Afghans by linking them to the prophets, Muslim invaders of the past, and local religious figures. Overall, this textual analysis contributes to the historiography of eighteenth-century South Asia by studying the political anxieties associated with Rohilla Afghan state formation.