On 20 April 1774, Ajit Singh with title of "Raja" and Hira Singh with titles of "Raja" and "Salar Jang" were restored to Ballabhgarh as descendant of Balram by Mughal king after they were removed by Bharatpur king. In 1775, Ajit Singh was formally appointed Raja of Ballabhgarh under Mughal authority. In 1793, Ajit Singh was killed by his brother Zalim Singh, and Ajit's son Bahadur Singh became the king. Till 1803 Ballabhgarh rulers remained under Marathas but bharatpur never came under Marathas. In 1785 mahadji capture deeg but not capture bharatpur after 1787 to keep peace with Jats gave 11 paragana to ranjit singh and make friendly relation with bharatpur to make peace ref agra province.