Malaysia–United Kingdom relations
In 1824 British hegemony in Malaya was formalised by the Anglo-Dutch Treaty, which divided the Malay Archipelago between Britain and the Netherlands. The Dutch evacuated Malacca and renounced all interest in Malaya, while the British recognised Dutch rule over the rest of the East Indies. By 1826, the British controlled Penang, Malacca, Singapore and the island of Labuan, which they established as crown colonies of the Straits Settlements, administered first under the EIC until 1867, when they were transferred to the Colonial Office in London. On the other hand, White Rajahs (founded by British adventurer James Brooke) ruled the Kingdom of Sarawak from 1841 to 1946, while North Borneo was founded by the North Borneo Chartered Company. Both Sarawak and North Borneo subsequently became a British Protectorate, and a Crown colony in 1946. In 1944, the British drew up plans for a Malayan Union, which would unite the Federated and Unfederated Malay States (except for Singapore), into a single Crown colony, with a view towards independence. It was established in 1946, and was dissolved in 1948 to be replaced by the Federation of Malaya. The federation became independent from the United Kingdom on 31 August 1957, and joined North Borneo, Sarawak and Singapore to form a new larger federation known as the Federation of Malaysia on 16 September 1963. However, in less than two years upon the founding of the federation, Singapore was expelled as a consequence of the 1964 race riots.
History of Malaysia
From the 15th century onwards, the Portuguese started seeking a maritime route towards Asia. In 1511, Afonso de Albuquerque led an expedition to Malaya which seized Malacca with the intent of using it as a base for activities in southeast Asia. This was the first colonial claim on what is now Malaysia. The son of the last Sultan of Malacca, Sultan Alauddin Riayat Shah II fled to the southern tip of the peninsula, where he founded a state that which became the Sultanate of Johor. Another son created the Perak Sultanate to the north. By the late 16th century, the tin mines of northern Malaya had been discovered by European traders, and Perak grew wealthy on the proceeds of tin exports. Portuguese influence was strong, as they aggressively tried to convert the population of Malacca to Catholicism. In 1571, the Spanish captured Manila and established a colony in the Philippines, reducing the Sultanate of Brunei's power.
After the fall of Malacca to Portugal, the Johor Sultanate and the Sultanate of Aceh on northern Sumatra moved to fill the power vacuum left behind. The three powers struggled to dominate the Malay peninsula and the surrounding islands. Johor founded in the wake of Malacca's conquest grew powerful enough to rival the Portuguese, although it was never able to recapture the city. Instead it expanded in other directions, building in 130 years one of the largest Malay states. In this time the numerous attempts to recapture Malacca led to a strong backlash from the Portuguese, whose raids even reached Johor's capital of Johor Lama in 1587.