New Zealand occupied the German protectorate of Western Samoa at the outbreak of World War I in 1914 and continued to administer the islands until 1962, when the islands became the first Polynesian nation to reestablish independence in the 20th century.