Mataram Sultanate
Ageng withdrew to a residence outside Banten proper sometime before 1671, in order to forestall a palace coup he anticipated from his son. He supported Trunajaya's rebellion in the Mataram Sultanate, and was highly critical of Amangkurat II and his relationship with the VOC. He was able to gain control of Cirebon and the Priangan highlands when Mataram fell into disarray, thus surrounding Batavia with his troops.