Malharrao Holkar, Jayappa Shinde, Gangadhar Tatya, Tukojirao Holkar and Khanderao Holkar went to help Safdarjung against Shadulla Khan, Ahmed Khan Bangash, Mohamud Khan and Bahadur Khan Rohilla as per the directions of Peshwa Balaji Bajirao. In the Battle of Fatthegad and Farukhabad, they defeated the Rohillas and Bangash (March 1751-April 1752). When Mughal Emperor came to know that Ahmed Shah Abdali had attacked Punjab in December 1751, he asked Safdarjung to make peace with Rohillas and Bangash. On 12 April 1752, Safdarjung agreed to help Marathas but the Emperor didn’t ratify the agreement and instead signed a treaty with Ahmed Shah Abdali on 23 April 1752. At the same time, the Peshwa asked Malharrao Holkar to return to Pune as Salabat Khan had attacked the city.