 Tirtayasa agreed to assist Cirebon and saw it as an opportunity to improve diplomatic relations between Banten and Cirebon.Using the opportunity of Trunojoyo rebellion against Mataram, Sultan Ageng Tirtayasa secretly supported the revolt and managed to save the two Cirebon princes.However, Sultan Ageng Tirtayasa saw an opportunity to imposing Banten's influence upon Cirebon.