 In 1677, during the Trunajaya rebellion, Plered was taken by the rebel forces, consisting of Madurese troops, as well as Javanese forces from East Java and central northern coast, led by Raden Kajoran.The defenders, led by Amangkurat's four eldest son, offered an ineffective defense and were defeated.Consequently, Amangkurat and the royal family fled the court, and soon after the rebels entered the complex and plundered it.