Shahuji I ascended the throne in 1684 at the age of 12 on the death of his father Venkoji or Ekoji I the first Maratha ruler of Thajnavur.
However, the annihilation of the Maratha Empire was prevented by the brave resistance offered by Shivaji's second son Rajaram and his wife Tara Bai.
As the Maratha territories were overrun by Mughal troops, the focus of resistance shifted to Gingee fort which Rajaram took in 1693 with an army of 20,000 men provided by his cousin, the Raja of Thanjavur.
Aurangazeb retaliated by sending his general Zulfiqar Khan who recaptured Gingee and pursued the fleeing Marathas into Thanjavur.
An inscription at Pattukkottai boasts of the conquest of all lands between Pamban and Pudukkottai by Babaji son of Gangadhara, the agent of Shahuji I and the construction of a fort by the same official.
Soon Shahuji I switched sides on account of the common danger to Thanjavur and Tiruchirapalli from the anicut built by Mysore across the Cauvery.
Sahasraja vilasa nataka narrates how Shahuji I defeated the Muslim sultans and conquered all lands up to Varanasi.