After the death of Shivaji (reigned 1674-80), there was a fight for succession between Rajaram and Shambaji. Shambaji (reigned 1680-89), the elder son of Shivaji, defeated Rajaram (reigned 1689-1700), the younger son of Shivaji, in the war of succession. Shambaji provided protection and support to Akbar II, the rebellious son of Aurangzeb. The latter was captured at Sangameswar by a Mughal noble and executed. Rajaram succeeded the throne with the help of ministers at Rajgarh.