Baroda State was a former Indian State in Western India. Vadodara’s more recent history began when the Maratha leader Pilaji Gaekwad (or Gaikwar) conquered Sonagad from the Mughal Empire in 1726. Before the Gaekwars captured Baroda, it was ruled by Babi Nawabs, who were the officers of the Delhi ruler. Moghul rule came to an end in 1732, when Pilaji Rao Gaekwar brought the Maratha activities in Southern Gujarat to a head and captured it.
Except for a short period, Baroda continued to be in the reign of the Gaekwars from 1734 to 1948. Initially detailed to collect revenue on behalf of the Peshwa in Gujarat, Pilaji Gaekwad remained there to carve out a kingdom for himself. Damajirao, son and successor of Pilajirao defeated the Mughal armies and conquered Baroda in 1734.
After the Maratha defeat by the Afghans at the Third Battle
of Panipat in 1761, control of the empire by the Peshwas weakened as it became a loose confederacy, and the Gaekwad Maharajas ruled the kingdom until Indian independence.