Graharipu was a 10th-century Chudasama[1]king of Saurashtra region of western India with his capital at Vamanasthali (now Vanthali).
[5] The Chudasama began to rule in Southern and western Sourashtra from the second half of the 10th century A.D their capital was vamanshtali, modern vanthali nine miles west of Junagadh.
[6][7] The growing power of the Chudasama dynasty[citation needed] and his acts of harassing the pilgrims to Somnath temple resulted in his conflict with Mularaja.
After this battle, the Chudasama[citation needed] domain was repeatedly attacked by subsequent Chaulukya rulers.
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.
[9][10] 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.
After the war began, he was joined by a mlechchha chief (who according to the Hemachandra's commentator Abhayatilaka Gani, was a Turushka).
[11][12] Mularaja was supported by the kings Gangamaha of Gangadvara and his younger brother, Mahirata, Revatimitra, and Shailaprastha.
However, in their 12th fight, Mularaja besieged his fort Kapilkot (now Kera, Kutch), killed him, and trod him on his beard.
Historian Asoke Majumdar theorizes that Mularaja attacked Graharipu on "some flimsy pretext", as Mahadeva's-order-in-a-dream was a popular device used by Sanskrit authors to justify the otherwise inexcusable actions of their heroes.
Mularaja's descendants fought against the kings of Kachchha and Saurashtra, so it appears that he managed to subjugate these territories only partially.