In the 1830s, the controlling colonial powers in the region, the British East India Company and the Dutch Empire, agreed to curb the rampant piracy. This decision, embodied in the Anglo-Dutch Treaty of 1824 led to the creation of the British Straits Settlements of Malacca, Dinding, Penang, and Singapore, seats of British administration aimed at controlling piracy and enabling maritime trade. The British and Dutch empires effectively drew a demarcation line along the strait, agreeing to fight against piracy on their own side of the line. This line of demarcation would eventually become the modern-day border between Malaysia and Indonesia. Increased patrolling and superior seafaring technology on the part of the European powers, as well as improved political stability and economic conditions in the region, eventually allowed the European powers to greatly curb piracy in the region by the 1870s.