The Marattas also came to Thanjavur in the later half of the 17th century. Ekogi became the first Maratta ruler of Thanjavur (1676-1683). The Marattas ruled Thanjavur for some time but became later vassals of the Mughal Governor of Karnataka. Subsequently there were hostilities between the Arcot Nawab and the Maratta ruler of Thanjavur. The French and English also began interfering in the internal affairs of South India. The supremacy of the English was later established. Saraboji II the adopted son of Tuljaji, was made King of Thanjavur in 1798, after agreeing with all the conditions laid down by the British Government. A pact was signed between the Maratta ruler and the English by virtue of which the status of the Raja was reduced to a mere vassal.