Gaekwads (also spelled as Gaikwads, Guicowars, Gaekwars) (IAST: Gāyakavāḍa), a Hindu Maratha dynasty of the former Maratha Empire and its subsequent (erstwhile) princely state of Baroda in western India from the early 18th century until 1947. The ruling prince was known as the Maharaja Gaekwad of Baroda. With the city of Baroda (Vadodara) as its capital, during the British Raj its relations with the British were managed by the Baroda Residency. It was one of the largest and wealthiest princely states existing alongside British India, with wealth coming from the lucrative cotton business as well as rice, wheat and sugar production. Early history The Gaekwad rule of Baroda began when the Maratha general Pilaji Rao Gaekwad conquered the city from the Mughal Empire in 1721. The Gaekwads were granted the city as a Jagir by Chhatrapati Shahu I, the Chhatrapati of the Maratha empire. In their early years, the Gaekwads served as subordinates of the Dabhade family, who were the Maratha chiefs of Gujarat and holders of the senapati (commander-in-chief) title. When Umabai Dabhade joined Tarabai's side against Balaji Baji Rao, Pilaji's son Damaji Rao Gaekwad commanded the Dabhade force. He was defeated, and remained under Peshwa's arrest from May 1751 to March 1752. In 1752, he was released after agreeing to abandon the Dabhades and accept the Peshwa's suzerainty. In return, Damaji was made the Maratha chief of Gujarat, and the Peshwa helped him expel the Mughals from Gujarat. Damaji subsequently fought alongside Sadashiv Rao, Vishwas Rao, Malhar Rao Holkar, Jankoji Scindia, Sidhoji Gharge-Desai (Deshmukh) and Mahadji Shinde in the Third Battle of Panipat (1761). After the Maratha defeat at Panipat, the central rule of the Peshwas was weakened. As a result, the Gaekwads, along with several other powerful Maratha clans, established themselves as virtually independent rulers, while recognizing the nominal authority of the Peshwas and suzerainty of the Bhonsle Maharaja of Satara. British suzerainty The Gaekwads, together with several Maratha chieftains, fought the British in the First Anglo-Maratha War. On 15 March 1802, the British intervened to defend a Gaekwad Maharaja, Anand Rao Gaekwad, who had recently inherited the throne against rival claimants, and the Gaekwads concluded the Treaty of Cambey with the British that recognized their independence from the Maratha empire and guaranteed the Maharajas of Baroda local autonomy in return for recognizing British suzerainty. Maharaja Sayaji Rao III, who took the throne in 1875, did much