To prevent Portuguese gaining a foothold on Java, Fatahillah, on behalf of the Demak attacked the Portuguese in Sunda Kelapa in 1527 and succeeded in conquering the harbour on June 22, after which Sunda Kelapa was renamed Jayakarta [REF].[REF]
By the late 16th century, Jayakarta was under the rule of the Sultanate of Banten.