The Dutch East India Company was established in the early 1600s to maximize Dutch trading interests in Southeast Asia. By 1700, the company had grown powerful and established colonial rule over many areas. After going bankrupt in 1800, the company's territories came under control of the Dutch government. During the Napoleonic Wars and afterward, there was conflict between the Dutch and British for control of the East Indies, resulting in the Dutch ceding some areas to Britain in exchange for retaining control of key colonies like Java and what is now Indonesia.