 This constituted nearly all independent foreign policy of the sultanate, and the trade restriction would undermine the basis of their prosperity, but as Haji's position in Banten grew desperate, he accepted the agreement in 1682.By the time a VOC force led by François Tack and Isaac de Saint-Martin came to help, Haji was besieged in his palace by his father's supporters.The VOC then recognized him as sultan, and drove Ageng from his residence into the countryside, where he surrendered in 1683.