Spain acquired sovereignty over the Palau Islands in 1886 but sold the archipelago to Germany in 1899. Japan occupied the islands in 1914 and in 1921 they were mandated to Japan by the League of Nations. Captured by Allied Forces in 1944, the islands became part of the UN Trust Territory of the Pacific Islands created on 18 July 1947 and administered by the USA. Following a referendum in July 1978 in which Palauans voted against joining the new Federated States of Micronesia, the islands became autonomous from 1 Jan. 1981. A referendum in Nov. 1993 favoured a Compact of Free Association with the USA. Palau became an independent republic on 1 Oct. 1994.