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.
Royal Malaysia Police
Following the assimilation of Malacca into the British Empire in 1795, a modern police organisation in Malaysia was formed, on 25 March 1807, after the Charter of Justice in Penang was granted. Most of the officers were of British origin. Later, this organisation was developed in the Straits Settlements and other Malay states, particularly the Federated Malay States. At that time, independent police forces were established for each respective state. Only after World War II was a central police organisation formed, known as the Civil Affairs Police Force. This organisation was formed in Malaya and led by a British colonial, H.B. Longworthy, who had to stabilise the police forces after the anarchy of Japanese occupation. One of the immediate problems faced by the police at this time was the rebellion of the communist party. During the confrontation between Malaysia and Indonesia, which lasted from 1963 to 1965, the police force, along with military forces, fought against the infiltration of Indonesian forces into the states of Johor and Sabah.