Battle of Gegodog

The royal army was routed, and the king's elderly uncle Pangeran Purbaya was killed after leading a futile charge.

The rebel victory was followed by further successes - including more conquests and the defections of Mataram subjects to Trunajaya's side.

[2] He used the crown prince's patronage (as well as his own family's name) to gain followers which allowed him to wrest control of the island.

[10] The Crown Prince initially expected that he and his protégé Trunajaya would only fight a sham battle and then both forces would join against the King.

[11] According to Thomas Stamford Raffles, he "performed extraordinary feats of valour", had his horse shot from under him and continued to fight on foot, before he was overpowered and slain.

[10] Jepara did not fall due to the united efforts of the king's military governor there and VOC forces who arrived there from Batavia.

[10] The inland advance was slower, but rebel forces under Raden Kajoran would ultimately overrun and sack the capital in June 1677.

[13] The rebellion would continue for several more years, and Mataram would be forced to request assistance from the Dutch East India Company (VOC) - in exchange for geopolitical and financial compensations - to turn the tide of the war.