Coen's plans had included making Batavia the centre of intra-Asian trade spanning from
Japan to
China,
Burma,
Indonesian archipelago, and
Ceylon as far as
Persia, by employing Ambonese mercenary and Chinese labour to develop the spice trade. Although this plan was never realised, Coen managed to establish a Dutch monopoly of the spice trade through an alliance with
Ternate Sultanate in 1607 to control the production of cloves, and the occupation of the
Banda Islands gave control of the nutmeg trade. The Dutch captured Melaka from the Portuguese in 1641 giving them control of the region's seas. Beginning in 1600, the Dutch came into conflict with the Spanish in the region. Several Dutch fleets invaded the
Spanish Philippines, although these did not manage to capture territory there and peace was established in 1648 through the
Peace of Westphalia. By the mid-17th century, Batavia had become an important trade centre. It had
repelled attacks from the
Javanese Mataram kingdom. The Dutch defeated the Sulawesi city of
Makassar in 1667, thus bringing its trade under VOC control. Sumatran ports were also brought under VOC control, and the last of the Portuguese were expelled in 1660. In return for monopoly control over the pepper trade and the expulsion of the EIC, the Dutch helped the son of the ruler of Banten overthrow his father in 1680. VOC policy at this time was to concentrate on its trading posts and to not become involved in costly territorial conquest. However, the company became deeply involved in the internal politics of
Java in this period, and fought in a number of wars involving the leaders of
Mataram and
Banten (Bantam). The VOC reached an accord with the
susuhunan (king) of
Mataram, Java's dominant kingdom, that only allowed Dutch ships to trade within the archipelago. Although they failed to gain complete control of the Indonesian spice trade, they had much more success than the previous Portuguese efforts. They exploited the factionalisation of the small kingdoms in Java that had replaced
Majapahit, establishing a permanent foothold in Java, from which grew a land-based colonial empire which became
one of the world's richest colonial possessions. ==Subject population==