In the early 1570s, the sultan Ali Jalla returned to the Kota Batu area and reestablished the capital at Johor Lama. The Johor Sultanate had initially formed an alliance with the Portuguese against the Acehnese, however Ali Jalla confiscated the cargo of a Portuguese ship that had wrecked on the mouth of the Johor River. In response, the Portuguese stopped traders from Melaka from trading with Johor.