In the effort to attack Malacca which was ruled by the Portuguese at the time, Sultan Trenggono of Demak isolated his area from the Portuguese, especially areas where their inhabitants had not converted to Islam. In 1522. King Samian - the authority of Sunda Kelapa - and Henrique Leme, a representative of Portugal, signed a treaty that gave Portuguese the right to construct a fort. The Demak Expedition led by Fatahillah in 1527 succeded in occupying Banten, Sunda Kelapa and Cirebon. To press his claim further on King Samian, on 1527 the Portuguese sent an expedition of 6 ships led by Francisco de Sa. But it turned out that they were no longer up against a Hindu Kingdom, but an Islamic monarch. When their demands were rejected by Fatahillah, they tried to use force and so began the siege of The Bay of Sunda Kelapa. The Portuguese was then successfully defeated by Fatahillah troops. This event was immortalised by changing the name of Sunda Kelapa to Jayakarta, the Glorious City.