However, during the collapse of the Mughal Empire, the Babis became involved in a struggle with the Gaekwad dynasty of the Maratha Empire over control of Gujarat, during the reign of the local Mohammad Mahabat Khanji I. Mohammad Khan Bahadur Khanji I declared independence from the Mughal governor of Gujarat subah, and founded the state of Junagarh in 1730.
During the reign of his heir Junagarh was a tributary to the Maratha Empire,[7] until it came under British suzerainty in 1807 under Mohammad Hamid Khanji I,[1] following the Second Anglo-Maratha War.
Mansa Khant occupied Uparkot for 13 months and continued to carry out numerous raids mostly in the countryside.
The nawab was assisted by the King of Gondal State, Thakur Sahib Haloji Jadeja and Arab Jamadar Sheikh Abdullah Zubeidi in his campaign against the rebellion.
[12] The Constitutional Advisor to the Nawab, Nabi Baksh, indicated to Lord Mountbatten that he was recommending that Junagarh should join India.
[13] Pakistan's government has maintained its territorial claim on Junagadh, along with Manavadar and Sir Creek in Gujarat, on its official political maps.