. ▁ ▁Prior ▁to ▁the ▁battle , ▁Tr un aj aya ▁inv aded ▁eastern ▁Java ▁and ▁occupied ▁Sur ab aya ▁and ▁other ▁towns . ▁King ▁Am ang kur at ▁I ▁sent ▁an ▁army ▁to ▁face ▁him , ▁led ▁by ▁the ▁crown ▁prince . ▁The ▁crown ▁prince ▁expected ▁a ▁sh am ▁battle ▁from ▁Tr un aj aya , ▁his ▁former ▁prot ég é . ▁However , ▁Tr un aj aya ▁offered ▁a ▁real ▁fight ▁which ▁resulted ▁in ▁a ▁decis ive ▁victory ▁over ▁the ▁much ▁larger ▁royal ▁army . ▁The ▁royal ▁army ▁was ▁rout ed , ▁and ▁the ▁king ' s ▁elder ly ▁uncle ▁P anger an ▁P urb aya ▁was ▁killed ▁after ▁leading ▁a ▁fut ile ▁charge . ▁The ▁re bel ▁victory ▁was ▁followed ▁by ▁further ▁success es ▁- ▁including ▁more ▁con quest s ▁and ▁the ▁defe ctions ▁of ▁Mat aram ▁subjects ▁into ▁Tr un aj aya ' s ▁side . ▁ ▁Background ▁▁▁ ▁Prior ▁to ▁the ▁re bell ion , ▁the ▁Mad ur ese ▁no blem an ▁Tr un aj aya ▁lived ▁in ▁ex ile ▁in ▁Mat aram ▁and ▁had ▁a ▁close ▁relation ▁with ▁the ▁crown ▁prince ▁of ▁Mat aram ▁( then ▁known ▁as ▁P anger an ▁Ad ip ati ▁An om , ▁future ▁Am ang kur at ▁II ). ▁Tr un aj aya ' s ▁father - in - law ▁and ▁a ▁prominent ▁no blem an ▁R aden ▁K aj or an ▁had ▁introduced ▁him ▁to ▁the ▁crown ▁prince ▁in ▁ 1 6 7 0 . ▁Both ▁had ▁a ▁grud ge ▁against