 In 1700, Rajaram, died leaving behind a 12-year-old son—Shivaji II—by his wife Tarabai.In 1705, Tarabai asserted her autonomy by founding an independent dynasty in the name of her son Shivaji II and ruling it as regent with Panhala as her headquarters.In Tarabai's war with Shahuji of Satara in 1708, Shahu took Panhala and Tarabai fled to Malvan in Ratnagiri.