Mataram Sultanate
Amangkurat II was successfully ascended to throne because of Dutch assistance, but accompanied by treaty that worsened Kartasura-based Mataram Sultanate. When the situation was conducive, the anti-Dutch Patih Nerangkusuma persuaded him to betray the treaty.