In a bid to effectively manage the large empire, Shahu and the Peshwas gave semi-autonomy to the strongest of the knights, creating the Maratha Confederacy. They became known as Gaekwads of Baroda, the Holkars of Indore and Malwa, the Scindias of Gwalior and Bhonsales of Nagpur. In 1775, the East India Company intervened in a succession struggle in Pune, which became the First Anglo-Maratha War. The Marathas remained the pre-eminent power in India until their defeat by the British in the Second and Third Anglo-Maratha wars (1805–1818), which left the Company the dominant power in most of India.