Graharipu was a 10th-century Chudasama (Abhira) king of Saurashtra region of western India with his capital at Vamanasthali (now Vanthali). He was a contemporary of Mularaja, the first Chaulukya ruler of Anahilapataka (now Patan). Graharipu built or repaired Durgapalli, the ancient fort in Junagadh identified as Uparkot. The Abhiras grew very powerful during the reign of Graharipu in the middle of the 10th century A.D. He had his capital at Vāmanasthali, now represented by Abhiras the village Vanthali, 9 miles west of Junagadh. The growing power of the Chudasama dynasty and his acts of harassing the pilgrims to Somnath temple resulted in his conflict with Mularaja. After a major and decisive battle, Mulraja defeated Graharipu. The ruler from Kutch, Laksha had fought alongside Graharipu in the battle and was killed. After this battle, the Chudasama domain was repeatedly attacked by subsequent Chaulukya rulers. Titles Graharipu is sometimes described as Graharipu the Ahir. Battle with Mularaja According to Hemachandra, who was patronized by the Chaulukyas, the Chaulukya king Mularaja defeated Graharipu. No other Chaulukya-era accounts mention this victory. According to Hemachandra, one night, Mahadeva appeared in Mularaja's dream, and ordered him to vanquish Graharipu. In the morning, Mularaja consulted his ministers Jambaka and Jehula, as he was apprehensive of causing troubles to the pilgrims who visited Prabhasa in Saurashtra. Jambaka was his Mahamantri (chief minister) while Jehula, the Ranaka of Kahiralu (now Kheralu), was his Mahapradhana (prime minister), according to Abhayatilakagani. Jehula told Mularaja that Graharipu was a tyrant who tortured pilgrims and indulged in vices such as eating flesh, drinking wine and hunting deer in sacred places. Jambaka described Graharipu as a very strong king, and declared that only Mularaja was capable of defeating him. Both the ministers urged Mularaja to attack Graharipu. Mularaja launched a campaign against Graharipu on the day of Vijayadashami. Graharipu attempted a peaceful resolution through a messenger, who informed Mularaja that Graharipu had no enmity with him. However, Mularaja turned the messenger away, and continued his march. Graharipu then started his war preparations. His allies included Medas, his friend's son Laksha, and a king named Sindhuraja. After the war began, he was joined by a mlechchha chief (who according to the Hemachandra's commentator Abhayatilaka Gani, was a Turushka). Mularaja was supported by the kings Gangamaha of Gangadvara and his younger brother, Mahirata, Revatimitra, and Shailaprastha. The Paramara king of Abu and Srimala also joined him.