The raids of the Pindaris, irregular horsemen who resided in the Maratha territories, into British territory ultimately led to the Third Anglo-Maratha War of 1817–1818, which ended in the defeat of the Bhosles, Holkars, and other Maratha feudatories. In the mid-1810s, the British had intervened in 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.