 Around 1617 Agung launched his westward campaign targeted against Dutch settlements in Batavia, and rallied his massive troops near Cirebon's border.Agung urged the aged Panembahan Ratu to be his ally in his campaign to expel the Europeans out of Java.By doing so Cirebon become Mataram's ally, that in practice fell under Mataram's influence.