 To anticipate attacks from Trunojoyo's followers, in 1677 the palace of Mataram led by Amangkurat II as the crown prince of Amangkurat I asked for the regent Ponorogo to obtain the palace protection by bala Warok famous skilled in war and asked for help from the Dutch colonial to capture Trunojoyo.After Mataram palace was guarded by Warok of Ponorogo, Tronojoyo had difficulties to penetrate the palace and was arrested and finally sentenced to death in 1679.The Warok who managed to protect the palace got the prize a place to stay in the west of Mataram palace to facilitate the palace defence in case of an attack against the palace.