It was built by the Gohil Emperor Ranji Gohil and was ruled by the Parmar clan of Rajputs and by King Halaji Parmar, a Muslim king, who separated from the Muli Princely State in Surendranagar district and converted his religion from Hindu to Muslim.