Europeans such as the Portuguese arrived in Indonesia from the 16th century seeking to monopolise the sources of valuable nutmeg, cloves, and cubeb pepper in Maluku. In 1602, the Dutch established the Dutch East India Company (VOC) and became the dominant European power by 1610. Following bankruptcy, the VOC was formally dissolved in 1800, and the government of the Netherlands established the Dutch East Indies under government control. By the early 20th century, Dutch dominance extended to the current boundaries. The Japanese invasion and subsequent occupation in 1942–45 during WWII ended Dutch rule, and encouraged the previously suppressed Indonesian independence movement. Two days after the surrender of Japan in August 1945, nationalist leader Sukarno declared independence and became president. The Netherlands tried to reestablish its rule, but a bitter armed and diplomatic struggle ended in December 1949, when in the face of international pressure, the Dutch formally recognised Indonesian independence.