Complex sentence: The state was subordinate to the Mughal governor of Gujarat until being overrun by the marathas in the latter half of the 18th century, whereafter they came under the authority of the Gaekwad court at Baroda, and eventually of the Peshwa.
Split into simpler sentences: The state was subordinate to the Mughal governor of Gujarat until being overrun by the Marathas in the latter half of the 18th century. After, they came under the authority of the Gaekwad court at Baroda and eventually of the Peshwa.