Indonesia gained independence in 1945 after Japan destroyed the Dutch administration and due to the constant international pressure on the Netherlands. After 1945, there was opposition from the Dutch rulers accompanied by years of turmoil and diplomatic meetings. It was not until 2005 that the Dutch government accepted August 17, 1945, as the official date of Indonesia's independence.
There was a widespread independence movement in the Dutch East indies before the World War II. Leaders, such as Sutan Sjahrir, Mohammad Hatta and Sukarno, played a big role in advocating Indonesia's independence. After the Java Sea Battle, the Japanese won the war, and many Dutch men were taken into forced labor. The Dutch government attempted to restore its administration after the battle but it failed.