Conquest of Sunda Kelapa

The conquest of Sunda Kelapa was launched by Sultanate of Demak against the Sundanese kingdom in the west of Java. The city was successfully conquered and was later renamed Jakarta.

Background
As more foreign traders began to settle in the ports of the Sunda Kingdom, the control of the kings of these lands began to diminish, and was controlled by foreign merchants, fearing that this would lead to carving up their kingdom. However, the Sundanese king, suliwangi sent two embassies to Malacca in 1512 and 1521, and a treaty was signed in 1522 between Suliwangi's son, Surawiesa, and the Portuguese captain, Henrique Leme, sent by Jorge de Albuquerque. The treaty was to allow the Portuguese to settle in the kingdom by building a fortress in Jakarta, and the Sundanese would pay a tribute of 1,000 bags of pepper to the Portuguese. However, the Portuguese delayed building the settlement.

In 1478, Cirebon fell completely under the control of locally established foreign Muslim traders with the help and protection of the Demak Sultanate. They assembled troops and rejected the authority of the Sundanese kings. The Demak sultan, Trenggana, was hostile to any Portuguese settlements in Java and decided to prevent them at all costs, so he had his commander, Fatahillah, lead 2,000 men to conquer Banten. The city was easily captured in 1526. Sunda Kelapa was left exposed to Demak troops.

Conquest
In 1527, after consolidating Banten and launching his attack from there, Fatahillah attacked Sunda Kelapa. In this attack, he had 1,452 men added, along with some volunteers from Banten. The Sundanese king stationed most of his forces in his palace, and a small part of them were sent to defend Sunda Kelapa. The Demak fleet and army besieged it from land and water. Fatahillah was able to push back the Sundanese troops, and Sunda Kelapa was conquered on June 22. Fatahillah renamed the city Jakarta.

By this time, the Portuguese had sent a fleet of five or six ships led by Francisco de Sa and Duarte Coelho. They were unaware of the situation happening in Sunda Kelapa. However, the fleet was hit by a storm that separated them, and Coelho arrived with his three ships at Sunda. One of the ships ran ashore, and its entire crew was attacked and killed, 30 of them once they landed. Coelho awaited the arrival of Francisco's troops. They held a meeting and decided that they weren't strong enough to attack, so they sailed back to Malacca, destroying the Sundaese king's hopes.

Aftermath
Following his victory, Trenggana named Fatahilla the Sultan of Banten. The situation between Banten and Sunda remained quiet for some time. Later, one of the nobles in Pakuan Pajajaran opened one of the gates for Banten troops at night, and the city was captured. Surawiesa escaped to the southern mountains, leaving his kingdom for Fatahillah.

The Portuguese decided to put their treaty on hold and five years later after the fall of Sunda Kelapa, were openly trading with rulers of Banten.

Legacy
In 1956, Soediro set Demak's conquest of Sunda Kelapa date as Jakarta's birthday. Since then, Jakarta has annually celebrated 22nd June as its anniversary.