a financial dispute over revenue-sharing between the Peshwa and Gaekwads of Baroda. On 13 June 1817, the Company forced Baji Rao II to sign an agreement renouncing claims on Gaekwad's revenues and ceding large swaths of territory to the British. This treaty of Poona formally ended the Peshwa's titular overlordship over other Maratha chiefs, thus officially ending the Maratha confederacy. On 5 November 1817, the British Resident at Poona was attacked by Baji Rao II's army led by his Attorney Mor Dixit. Bajirao II could have won this battle had he not halted the progress of his forces by succumbing to the request of British Resident Elphinstone for a ceasefire. Baji Rao watched the battle that ensued between his troops and the British from a hill now called Parvati. This battle on 5 November 1817, referred to as the Battle of Khadki, resulted in Peshwa's defeat. Afterward, his troops moved to Garpir on the outskirts towards present-day Solapur Road to block the British troops coming from Jalna, but the treason of one of Baji Rao's chiefs, Sardar Ghorpade Sondurkar, led to his force withdrawing. Subsequently, Baji Rao captured Chakan Fort from the British troops. Meanwhile, the British placed Poona under Colonel Burr, while a British force led by General Joseph Smith pursued the Peshwa. Towards the end of December, Colonel Burr received news that the Peshwa intended to attack Pune, and asked the Company troops stationed at Shirur for help. The troops dispatched from Shirur came across the Peshwa's forces, resulting in the Battle of Koregaon. The Peshwa was unsuccessful in defeating the Shirur contingent, and was forced to retreat fearing the arrival of a bigger Company force led by General Smith. Surrender and retirement Five British columns set out after Baji Rao II in full cry, slavering at the thought of the 'prize money' that lay at the end of the chase. After running for five months from one fort to another, awaiting the promised help from Scindias, Holkars, and Bhosles that did not come, Baji Rao II surrendered to Sir John Malcolm. Much to the chagrin of the company's Governor-General Francis Rawdon-Hastings, 1st Marquess of Hastings (no relation to Warren Hastings, the first Governor-General of India), Malcolm agreed to keep Baji Rao a lifelong prince, allow him to retain his personal fortune, and pay him an annual pension of £80,000 (£100,000 according to some sources) every year. In