After Girdhar Bahadur's defeat in 1728, the Mughal emperor had appointed Jai Singh II to subdue the Marathas. Jai Singh recommended a peaceful agreement; the emperor disagreed, replacing him with Muhammad Khan Bangash. Bangash formed an alliance with the Nizam, Trimbak Rao and Sambhaji II. Baji Rao learned that Dabhade and Gaikwad had made preparations for an open fight on the plain of Dabhoi with a force of 40 thousand, while Baji Rao's numbers hardly reached 25 thousand in all. Baji Rao repeatedly sent messages to Dabhade to solve the dispute amicably in the presence of Chatrapati Shahu. But Dabhade was stiff and stubborn, disagreeing Baji Rao's proposition, therefore on 1 April 1731, Baji Rao struck at the allied forces of Dabhade, Gaekwad and Kadam Bande. The Dabhade was seated on elephant and Baji Rao was on horseback. But during the battle, a bullet pierced Trimbakrao's head and he died on the spot. Later it was discovered that the shot that killed Dabhade was fired by Dabhade's maternal uncle Bhau Singh Thoke. Baji Rao resolved the dispute with Sambhaji II on 13 April by signing the Treaty of Warna, which demarcated the territories of Shahu and Sambhaji II. The Nizam met Baji Rao at Rohe-Rameshwar on 27 December 1732, and promised not to interfere with Maratha expeditions.