The Fall of Plered (also spelled Pleret) was the capture of the capital of the Mataram Sultanate by the rebel forces loyal to Trunajaya in late June 1677.
The attack on Plered followed a series of rebel victories, notably in the Battle of Gegodog and the fall of most of Mataram's northern coast.
[2][3] In the same year, the rebels arrived at Taji, the eastern entrance to the capital district, and was joined by the men of Raden Kajoran, Trunajaya's powerful father-in-law.
[5] A fleet led by Cornelis Speelman sailed to Trunajaya's capital in Surabaya in April, northeastern coast of Java, and took the city after hard fighting in May.
[6] Amangkurat I's father and predecessor Sultan Agung built an artificial lake in an area which became known as Plered, east of his court at Karta.
[12] The crown prince later identified the forces who overran Mataram to be from Madiun, Pati, Kudus and Grobogan and the men of Kajoran and Purbaya.
[14] In addition, the king's cousin Pangeran Purbaya, defected to the rebel side along with his followers, and the loyal princes were unable to rally their people to fight.
[10] According to Javanese accounts, the king instructed Puger, Singasari and Martasana to form a new defence to the west of the capital, while he took the crown prince and a younger son Pangeran Arya Mataram travelling northwest.
[10] The king travelled through areas not yet under rebel control: west through Bagelen, then the mountainous region of Banyumas, and then north towards Tegal on the coast.
He travelled in a palanquin due to his illness, and was unmolested save for (according to Javanese accounts), an attempted robbery by villagers of Karanganyar who were unaware of his identity.
[17] Aware of his difficult position, the new king sailed to Jepara to meet with the VOC commander Speelman and renewed the Mataram-VOC alliance.
Unable to take Plered from his brother, in 1680 Amangkurat II built a new capital in the district of Pajang, and called it Kartasura.