During this Javanese campaign, Banten lost Pajajaran and Priangan to Mataram. Thus in just a decade, Banten had lost two of its important settlements previously acquired from the former Kingdom of Sunda; Jayakarta to the Dutch, and Pajajaran to Mataram. Fearing the common enemy has led for both Banten and Batavia to repair their relations. Batavia feared that possible Muslim alliance would put Banten into Mataram camp, while Banten feared that their kingdom would become the next target for the ambitious Sultan Agung to unite Java. Ultimately Mataram failed to capture Batavia. Later Mataram was gradually weakened through struggle of successions of Javanese princes and Dutch involvements in internal Mataram court affair.