Aceh Sultanate
In 1663, the VOC signed the "Painan Treaty" with several local lords in the Painan area that were revolting against the Aceh Sultanate. The treaty allowed the VOC to build a trading post in the area and eventually to monopolise the trade there, especially the gold trade.