The Dutch preferred Batavia (present-day Jakarta) as their economic and administrative centre in the region and their hold in Malacca was to prevent the loss of the city to other European powers and, subsequently, the competition that would come with it.
The first serious attempt was the siege of Malacca in 1606 by the third VOC fleet from the Dutch Republic with eleven ships, under Admiral Cornelis Matelief de Jonge that led to the naval battle of Cape Rachado.
The Dutch along with their local Javanese allies numbered around 700 men, assaulted and wrested Malacca from the Portuguese in January 1641.
As per the agreement with Johor in 1606, the Dutch took control of Malacca and agreed not to seek territories or wage war with the Malay kingdoms.
After the conquest of Malacca, the town yielded great profits in the 17th century, mostly due to the tin trade coming from Perak.
[2]: 107 In January 1795, Dutch stadtholder William V, Prince of Orange, seeking refuge in Great Britain, issued the Kew Letters, directing Dutch governors in the colonies to temporarily transfer authority to the United Kingdom and to cooperate with the British in the war against the French, so long as the "mother country" was under threat of invasion.
[citation needed] During the mid-17th century the city hall or Stadthuys was constructed and served as the administrative center of the Dutch colony, which still stands today.