Borneo was visited by the Portuguese in 1521, and shortly thereafter by the Spanish, who established trade relations with the island. The Dutch arrived in the early 1600s, and the English c.1665. Dutch influence was established on the west coast in the early 1800s and was gradually extended to the south and east. The British adventurer James Brooke took the north edge of the island in the 1840s, and what is now Sabah was declared a British protectorate in 1882, Sarawak and Brunei in 1888. The final boundaries were defined in 1905. In World War II the island was held by the Japanese from 1942 to 1945. Dutch Borneo became part of the republic of Indonesia in 1950. The union of Sabah and Sarawak with Malaya in the Federation of Malaysia in 1963 was resented by Indonesians. Indonesian guerrilla raids against both areas, begun in 1964, continued sporadically until Aug., 1966. The sultanate of Brunei became fully independent in 1984. The resettlement of non-Dyak Indonesians in Kalimantan has led to recurrent violence against the settlers by Dyaks.