# British Malaya

Part of a series on the :
History of Malaysia :
Prehistoric period Paleolithic  Lenggong Valley c. 2,000,0000 BCE  Mansuli Valley235,000 BCE Mesolithic  Niah cultures 65,000–40,000 BCE Neolithic  Bewah man/woman 16,000 BCE  Perak man/woman 11,000–200 BCE  Neolithic Klang 500 – 200 BCE :
Early kingdoms Ancient Kedah <100 BCE Chi Tu 100 BCE–642 CE Langkasuka 100 BCE–1474 CE Gangga Negara c. 100 CE–1025 Pan Pan 424–775 Old Kedah 170–1135 Old Pahang 449–1454 Srivijaya 700s–1025 Majapahit 1300s :
Rise of Muslim states Kedah Sultanate 1136–present Samudera Pasai Sultanate 1267–1521 Brunei Sultanate 1368–present Malacca Sultanate 1402–1511 Sulu Sultanate 1450–1899 Pahang Sultanate 1470–1623 Aceh Sultanate 1496–1903 Pattani Sultanate 1516– 1902 Johor Sultanate 1528–present Sarawak Sultanate 1599–1641 Selangor Sultanate 1766–present Besut Kingdom 1780–1899 Setul Kingdom 1808–1916 Reman Kingdom 1810–1902 Kubang Pasu Kingdom 1839–1864 :
Colonial period Portuguese Malacca 1511–1641 Dutch–Portuguese War 1601–1661 Dutch Malacca 1641–1824 Pahang Kingdom 1770–1881 Straits Settlements 1786–1946 Siamese invasion of Kedah 1821–1826 Anglo-Dutch Treaty1824 Burney Treaty1826 Naning War 1831–1832 Kingdom of Sarawak 1841–1946 Separation of Perlis from Kedah 1843 Crown Colony of Labuan 1848–1946 Pahang Civil War 1857–1863 Larut Wars 1861–1874 Klang War 1867–1874 Pangkor Treaty 1874 Perak War1875–1876 British Malaya / Borneo 1874–1946 Jementah Civil War 1879 North Borneo 1882–1946 Pahang Uprising 1891–1895 Mat Salleh Rebellion 1894–1905 Federated Malay States 1895–1946 Anglo-Siamese Treaty 1909 Unfederated Malay States 1909–1946 Battle of Penang 1914 Kelantan rebellion 1915 :
World War II Japanese occupation of Malaya / Borneo 1941–1945 Malayan campaign 1941–1942 Bornean Campaign 1941–1942 Battle of Muar 1942 Parit Sulong Massacre 1942 Battle of Singapore 1942 Sook Ching 1942 Syburi 1942 Sandakan Death Marches 1942–1945 Si Rat Malai 1943–1945 Jesselton revolt 1943–1944 :
Formative period BMA of Malaya/Borneo 1945–1946 Crown Colony of N. Borneo/Sarawak 1946–1963 Anti-cession movement 1946–1963 Malayan Union 1946–1948 Federation of Malaya 1948–1963 Malayan Emergency 1948–1960 Baling Talks 1955 :
Independence period Malayan Independence 1957 Singapore self-governance 1959 ISA 1960 1960–2012 Sarawak Insurgency 1962–1990 North Borneo self-governance 1963 Konfrontasi 1963–1966 Sarawak self-governance 1963 Formation of Malaysia 1963 Singapore in Malaysia 1963–1965 ASEAN Declaration 1967 Second communist insurgency 1968–1989 :
Modern period 13 May incident 1969 National Operations Council 1969–1971 Declaration of Rukun Negara 1970 New Economic Policy 1971–1990 Federal Territory of KL 1974 1977 Kelantan Emergency 1977 Pedra Branca dispute 1979–2008 South China Sea dispute (Spratly) 1980–present Dawn Raid 1981 Federal Territory of Labuan 1984 Memali incident 1985 Operation Lalang 1987 Constitutional crisis 1987–1988 Peace Agreement of Hat Yai 1989 Royal Immunity Amendments 1993 Asian financial crisis 1997–1998 Reformasi Movement 1998–2022 2008 Malaysian Opposition Wave 2008 H1N1 flu pandemic 2009–2010 Sedition Dragnet 2014 1MDB scandal 2015–present Pakatan Harapan takeover 2018 COVID-19 pandemic 2020–2022 Political crisis 2020–2022 Bornean Amendment 2021–2023 Green Wave 2022–present :
Incidents Brunei revolt 1962–1966 North Borneo dispute (Philippine militant attacks) 1962–present Singapore race riots 1964 Brunei's Limbang claim 1967–2009 Penang Hartal riot 1967 13 May Incident 1969 Ligitan and Sipadan dispute 1969–2002 Kuala Lumpur flash floods 1971 Malaysian haze crisis 1972–present AIA building hostage crisis 1975 National Monument bombing 1975 Campbell Shopping Complex fire 1976 Sabah Air GAF Nomad crash 1976 Japan Airlines Flight 715 incident 1977 MH653 incident 1977 1985 Lahad Datu ambush 1985 Memali Incident 1985 Sabah Emergency 1986 Ming Court Affair 1987 Penang terminal bridge collapse 1988 Taufiqiah Al-Khairiah madrasa fire 1989 Bright Sparklers disaster 1991 Highland Towers collapse 1993 Genting landslide 1995 MH2133 incident 1995 Pos Dipang mudflow 1996 Tropical Storm Greg 1996 1998–1999 Malaysia Nipah virus outbreak 1998–1999 2000 Sipadan kidnappings 2000 Al-Ma'unah incident 2000 Sauk Siege 2000 2001 Kampung Medan riots 2001 2002 Taman Hillview landslide 2002 Indian Ocean tsunami 2004 2006–2007 Southeast Asian floods 2006–2007 Bukit Gantang bus crash 2007 Bukit Antarabangsa landslide 2008 H1N1 flu pandemic 2009 Attacks against places of worship 2010 Cameron Highlands bus crash 2010 Hulu Langat landslide 2011 Genting Highlands bus crash 2013 MH370 incident 2014 MH17 incident 2014 2014–15 Malaysia floods 2014–2015 Sabah earthquake 2015 2015 Plaza Low Yat riot2015 Movida Bar grenade attack 2016 Kim Jong-nam's Assassination 2017 Darul Quran madrasa fire2017 2018 Subang Temple riot 2018 2020-21 Malaysia floods 2021 LRT train collision 2021 2021-22 Malaysia floods 2021–2022 2022 Batang Kali landslide 2022 2023 Elmina plane crash 2023 2024 Lumut helicopters crash 2024 2024 Ulu Tiram police station attack 2024 :
By topic
Communications
Constitutional
Economic
Immigration
Legal
Military :
By region
Kedah
Kuala Lumpur
Penang
George Town
Sabah
Sarawak :
Malaysia portal :
vte :
The term "British Malaya" (/məˈleɪə/; Malay: Tanah Melayu British) loosely describes a set of states on the Malay Peninsula and the island of Singapore that were brought under British hegemony or control between the late 18th and the mid-20th century. Unlike the term "British India", which excludes the Indian princely states, British Malaya is often used to refer to the Federated and the Unfederated Malay States, which were British protectorates with their own local rulers, as well as the Straits Settlements, which were under the sovereignty and direct rule of the British Crown, after a period of control by the East India Company.
Before the formation of the Malayan Union in 1946, the territories were not placed under a single unified administration, with the exception of the immediate post-war period when a British military officer became the temporary administrator of Malaya. Instead, British Malaya comprised the Straits Settlements, the Federated Malay States, and the Unfederated Malay States. Under British hegemony, Malaya was one of the most profitable territories of the empire, being the world's largest producer of tin and later rubber. During the Second World War, Japan ruled a part of Malaya as a single unit from Singapore.
The Malayan Union was unpopular and in 1948 was dissolved and replaced by the Federation of Malaya, which became fully independent on 31 August 1957. On 16 September 1963, the federation, along with North Borneo (Sabah), Sarawak, and Singapore, formed the larger federation of Malaysia.

## Initial British involvement in Malay politics

The first English trader to visit the Malay Peninsula was Ralph Fitch who arrived in the 16th century. However, the British only became formally involved in Malay politics in 1771, when Great Britain tried to set up trading posts in Penang, formerly a part of Kedah. The British established a trading post in Singapore in 1819 and gained complete control of the island in 1824.

### Penang and Kedah

In the mid-18th century, British firms could be found trading in the Malay Peninsula. In April 1771, Jourdain, Sulivan and de Souza, a British firm based in Madras, India, sent Francis Light to meet the Sultan of Kedah, Muhammad Jiwa Zainal Adilin II, to open up the Kedah's market for trading. Light was also a captain in the service of the East India Company (EIC).
The Sultan faced external threats during this period. Siam, which was at war with Burma and which saw Kedah as its vassal state, frequently demanded that Kedah send reinforcements. Kedah, in many cases, was a reluctant ally to Siam.
After negotiations with Light, the Sultan agreed to allow Jourdain, Sulivan, and de Souza to build and operate a trading post and in Kedah, if the British agreed to protect Kedah from external threats. Light conveyed this message to his superiors in India. The EIC, however, did not agree with the proposal.
Two years later, Sultan Muhammad Jiwa died and was succeeded by Sultan Abdullah Mukarram Shah. The new Sultan offered Light (who later became a British representative) the island of Penang in return for military assistance for Kedah. Light informed the EIC of the Sultan's offer. The EIC, however, ordered Light to take over Penang and gave him no guarantee of the military aid that the Sultan had asked for. Light later took over Penang and assured the Sultan of military assistance, despite the EIC's position. Soon the EIC told Light that they would not give any military aid to Kedah. In June 1789, Light informed the Sultan of the EIC's decision. Feeling cheated, the Sultan ordered Light to leave Penang, but Light refused.
Light's refusal caused the Sultan to strengthen Kedah's military forces and to fortify Prai, a stretch of beach opposite Penang. Recognising this threat, the British moved in and razed the fort in Prai. The British thereby forced the Sultan to sign an agreement that gave the British the right to occupy Penang; in return, the Sultan would receive an annual rent of 6,000 Spanish pesos. On 1 May 1786, the Union Flag was officially raised in Penang for the first time. In 1800, Kedah ceded Prai to the British and the Sultan received an increase of 4,000 pesos in his annual rent. Penang was later named Prince of Wales Island, while Perai was renamed Province Wellesley.
In 1821, Siam invaded Kedah, sacked the capital of Alor Star, and occupied the state until 1842.

## Expansion of British influence (19th century)

Before the late 19th century, the British largely practised a non-interventionist policy. Several factors such as the fluctuating supply of raw materials, and security, convinced the British to play a more active role in the Malay states.
From the 17th to the early 19th century, Malacca was a Dutch possession. During the Napoleonic Wars, between 1811 and 1815, Malacca, like other Dutch holdings in Southeast Asia, was under British occupation to prevent the French from claiming them. When the war ended in 1815, Malacca was returned to the Dutch. In 1824 the British and the Dutch signed the Anglo-Dutch Treaty of 1824. The treaty, among other things, legally transferred Malacca to British administration and officially divided the Malay world into two separate entities, laying the basis for the current Indonesian-Malaysian boundary.

### Johor and Singapore

Modern Singapore was founded in 1819 by Sir Stamford Raffles, with a great deal of help from Major William Farquhar. Before establishing Singapore, Raffles was the Lieutenant Governor of Java from 1811 to 1815. In 1818 he was appointed to Bencoolen. Realising how the Dutch were monopolising trade in the Malay Archipelago, he was convinced that the British needed a new trading colony to counter Dutch trading power. Months of research brought him to Singapore, an island at the tip of the Malay Peninsula. The island was ruled by a temenggung.
Singapore was then under the control of Tengku Abdul Rahman, the Sultan of the Johore-Riau-Lingga Sultanate (otherwise known as the Johor Sultanate), in turn under the influence of the Dutch and the Bugis. The Sultan would never agree to a British base in Singapore. However, Tengku Abdul Rahman had become sultan only because his older brother, Tengku Hussein or Tengku Long, had been away getting married in Pahang when their father – Sultan Mahmud Shah III – died in 1812. In Malay tradition, a person must be by the side of the dying sultan to be considered as a new ruler. Tengku Abdul Rahman was present when the old sultan died. Tengku Hussein was not happy with the development, while the temenggung who was in charge of Singapore preferred Tengku Hussein to the younger brother.
The British had first acknowledged Tengku Abdul Rahman at the time of their first presence in Malacca. The situation however had changed. In 1818, Farquhar visited Tengku Hussein in the island of Penyengat, off the coast of Bintan, the capital of the Riau Archipelago. There, new plans were drawn up, and in 1819 Raffles made a deal with Tengku Hussein. The agreement stated that the British would acknowledge Tengku Hussein as the legitimate ruler of Singapore if he allowed them to establish a trading post there. Furthermore, Tengku Hussein and the temenggung would receive a yearly stipend from the British. The treaty was ratified on 6 February 1819. With the Temenggung's help, Hussein left Penyengat, pretending that he was 'going fishing', and reached Singapore, where he was installed as Sultan.
The Dutch were displeased with the action of Raffles. However, with the signing of the Anglo-Dutch Treaty of 1824, Dutch opposition to the British presence in Singapore receded. The treaty also divided the Sultanate of Johor into modern Johor and the new Sultanate of Riau.

### Straits Settlements

After the British secured Malacca from the Dutch through the Anglo-Dutch Treaty of 1824, they aimed to centralise the administration of Penang, Malacca, and Singapore. To this end, in 1826 a framework known as the Straits Settlements was established, with Penang as its capital. The capital was moved in 1832 to Singapore. While the three holdings formed the backbone of the settlements, Christmas Island, the Cocos Islands, Labuan, and Dindings (in Perak) were also placed under the authority of the Straits Settlements.
Until 1867, the Straits Settlements were answerable to the British administrator of the East India Company (EIC) in Calcutta. The settlements' administrators were dissatisfied with the way Calcutta was handling their affairs and they complained to London. In 1856 the EIC tried to annul Singapore's free port status.
In 1858, following the Indian Mutiny, the East India Company was dissolved and British India came under the direct rule of the Crown, which was exercised by the Secretary of State for India and the Viceroy of India. With Calcutta's waning power, and after intense lobbying by the administrators of the settlements, in 1867 they were declared a Crown colony and placed directly under the control of the Colonial Office in London. However, the declaration gave the colony a considerable degree of self-governance within the British Empire.
In 1946, after World War II, the colony was dissolved. Malacca and Penang were absorbed into the new Malayan Union, while Singapore was separated from the rest of the former colony and made into a separate Crown colony. The Malayan Union was later replaced with the Federation of Malaya in 1948, and in 1963, together with North Borneo, Sarawak and Singapore, formed an enlarged federation called Malaysia.

### Northern Malay states and Siam

Prior to the late 19th century, the British East India Company (EIC) was interested only in trading, and tried to avoid Malay politics. However, Siam's influence in the northern Malay states, especially Kedah, Terengganu, Kelantan and Patani, prevented the EIC from trading in peace. Therefore, in 1826, the British, through the EIC, signed a secret treaty known today as the Burney Treaty with the King of Siam. The four Malay states were not present during the signing of the agreement. In that treaty, British acknowledged Siamese sovereignty the four states. In return, Siam accepted British ownership of Penang and Province Wellesley and allowed the EIC to trade in Terengganu and Kelantan unimpeded.
83 years later, a new treaty now known as the Anglo-Siamese Treaty of 1909 or the Bangkok Treaty of 1909 was signed between the two powers. In the new agreement, Siam agreed to give up its claim over Kedah, Kelantan, Perlis, Terengganu and Perlis, while Patani remained Siamese territory. Perlis was previously part of Kedah but during the Siamese reign it was separated from Kedah. Kedah's district of Satun however was annexed by Siam in the same agreement. Patani was split into Pattani, Yala and Narathiwat provinces after the signing of the treaty.
Though the Siamese king Chulalongkorn was reluctant to sign the treaty, increasing French pressure on the Siamese eastern border forced Siam to co-operate with the British. Chulalongkorn hoped that the British would leave Siam alone if he acceded to their demands. Earlier in 1893, Siam had lost the Shan region of north-eastern Burma to the British. This demarcation as stated in the agreement remains today the Malaysia–Thailand border.
The Malay rulers did not acknowledge the agreement, but were too weak to resist British influence. In Kedah after the Bangkok Treaty, George Maxwell was posted by the British in Kedah as the sultan's advisor. The British effectively took over economic planning and execution. A rail line was built to connect Kedah with Siam in 1912 while land reform was introduced in 1914. The ruler of Kedah, Sultan Abdul Hamid Halim, accept a British advisor in 1923.
Perlis had a similar experience. The ruler did not recognise the 1909 treaty but the British were de facto administrators of the state. It was only in 1930 that the ruler Raja Syed Alwi recognised the British presence in Perlis by admitting Meadows Frost as the first British advisor in Perlis.

### Pangkor Treaty and Perak

Perak is a state on the west coast of the Malay Peninsula. In the 18th and 19th centuries it was discovered to be rich in tin, with the richest alluvial deposits of tin in the world. Europe at the same time was undergoing an industrial revolution and this created a huge demand for tin. The British as well as the Dutch were active in the states, each seeking to monopolise production of tin and other commodities. However, the political atmosphere in Perak was sufficiently volatile to raise the cost of tin mining operations. For instance, in 1818 Siam ordered Kedah to attack Perak. The lack of security in Perak forced the British to protect Perak in 1826.
As Perak continued to increase its mining operations, it suffered a shortage of labour. Looking to solve the problem, Malay administrator Long Jaafar invited the Chinese in Penang to work in Perak, particularly at Larut. By the 1840s, Perak's Chinese population had exploded. The new immigrants more often than not were members of Chinese secret societies. Two of the largest were Ghee Hin and Hai San. These two groups regularly tried to increase their influence in Perak resulting in frequent skirmishes. These skirmishes got out of hand to the point that not evenNgah Ibrahim, the Menteri Besar (chief minister), was unable to enforce the rule of law.
Meanwhile, there was a power struggle in the Perak royal court. Sultan Ali died in 1871 and the next in line for the throne was the Raja Muda Raja Abdullah. Despite that fact, he was not present during the burial of the sultan. As in the case of Tengku Hussein of Johor, Raja Abdullah was not appointed as the new sultan by the ministers of Perak. Instead the second in line, Raja Ismail, became the sultan of Perak.
Raja Abdullah was furious and refused to accept the news kindly. He then sought and gathered political support from various channels, including several of Perak's local chiefs and several British personnel with whom he had done business in the past, with the secret societies becoming their proxies in the fight for the throne. Among those British individuals was British trader W. H. M. Read. Furthermore, he promised to accept a British advisor if the British recognised him as the legitimate ruler of Perak.
The Governor of the Straits Settlements at that time was Sir Harry Ord who was a friend of Ngah Ibrahim, who had unresolved issues with Raja Abdullah. With Ord's aid, Ngah Ibrahim sent sepoy troops from India to prevent Raja Abdullah from actively claiming the throne and extending control over the Chinese secret societies.
By 1873 the Colonial Office in London came to perceive Ord as incompetent. He was soon replaced by Sir Andrew Clarke and Clarke was ordered to get a complete picture of what was happening in the Malay states and recommend how to streamline British administration in Malaya. The reason was that London was increasingly aware that the Straits Settlements were increasingly dependent on the economy of the Malay states, including Perak. After Clarke's arrival in Singapore, many British traders including Read became close to the governor. Through Read, Clarke learned of Raja Abdullah's problem and willingness to accept a British representative in his court if the British assisted him.
Clarke seized the opportunity to expand British influence. First, he called all Chinese secret societies together and demanded a permanent truce. Later, through the signing of the Pangkor Treaty on 20 January 1874, Clarke acknowledged Raja Abdullah as the legitimate sultan of Perak. It resulted in the appointment of J. W. W. Birch as a British resident in Perak later that year. Raja Ismail, on the other hand, while not party to the agreement, was forced to abdicate due to intense external pressure applied by Clarke.

### Selangor

Selangor, just to the south of Perak also had considerable deposits of tin around Hulu Selangor in the north, Hulu Klang in the central area and Lukut near Negeri Sembilan to the south. Around 1840, under the leadership of Raja Jumaat from Riau, tin mining became a huge enterprise. His efforts soon were rewarded by Sultan Muhammad Shah of Selangor; Raja Jumaat was appointed as Lukut's administrator in 1846. By the 1850s the area emerged as one of the most modern settlements on the Malay Peninsula apart from the Straits Settlements. At one point, there were over 20,000 labourers, most of them ethnic Chinese imported from China. Raja Jumaat died in 1864 and his death created a leadership vacuum and Lukut gradually declined.
Meanwhile, Hulu Klang enjoyed unprecedented growth due to tin mining. Between 1849 and 1850, Raja Abdullah bin Raja Jaafar, Raja Jumaat's cousin, was appointed by the sultan as Klang's administrator. As Lukut's economic importance was slowly declining, that of Hulu Klang was rising. This attracted many labourers to relocate there, especially Chinese immigrants who had worked in Lukut. One person responsible for persuading the Chinese to move from Lukut to Hulu Klang was Sutan Puasa from Ampang. He supplied the mining colonies in Hulu Klang with goods ranging from rice to opium. As Hulu Klang prospered, several settlements started to rise up by the late 1860s. Two of them were Kuala Lumpur and Klang. A Chinese kapitan named Yap Ah Loy was instrumental in developing Kuala Lumpur.
As in Perak, this rapid development attracted interest from the British in the Straits Settlements. The economy of Selangor became important enough to the prosperity of the Straits Settlements that any disturbance there would harm the Straits Settlements. Therefore, the British felt they needed to have a say in Selangorean politics. One major disturbance, amounting to a civil war, was the Klang War which lasted from 1867 to 1874.
In November 1873, a ship from Penang was attacked by pirates near Kuala Langat, Selangor. A court was assembled near Jugra and suspected pirates were sentenced to death. The Sultan expressed concern and requested assistance from Sir Andrew Clarke. Frank Swettenham was appointed to serve as the Sultan's advisor. Around a year later, a lawyer from Singapore named J. G. Davidson was appointed as British Resident in Selangor. Frank Swettenham was nominated for the Resident post but he was deemed too young.

### Sungai Ujong, Negeri Sembilan

Negeri Sembilan was another major producer of tin in Malaya. In 1869 a power struggle arose between Tengku Antah and Tengku Ahmad Tunggal, as both aspired to become the next ruler of Negeri Sembilan, the Yamtuan Besar. This conflict between the two princes divided the confederation and threatened the reliability of tin supply from Negeri Sembilan.
Sungei Ujong, a state within the confederation in particular was the site of many locally important mines. It was ruled by Dato' Kelana Sendeng. However, another local chieftain named Dato' Bandar Kulop Tunggal had more influence than Dato' Kelana. Dato' Bandar received great support from the locals and even from the Chinese immigrants who worked at the mines of Sungai Ujong. Dato' Kelana's limited popularity made him dependent on another chieftain – Sayid Abdul Rahman – who was the confederation's laksamana raja laut (roughly royal sea admiral). The strained relationship between Dato' Bandar and Dato' Kelana caused frequent disturbances in Sungai Ujong.
The years before 1873 were relatively calm as Dato' Kelana had to give extra attention to Sungai Linggi as Rembau – another state within the confederation – tried to wrest Sungai Linggi from Sungai Ujong's control. Negeri Sembilan at that time was connected to Malacca via Sungai Linggi, and a high volume of trade passed through Sungai Linggi daily. Whoever controlled Sungai Linggi would gain wealth simply through taxes.
Dato' Kelana Sendeng died in 1873. In early 1873, Sayid Abdul Rahman took his place, becoming the new Dato' Kelana. The death however did not repair the relationship between Dato' Kelana and Dato' Bandar. On the contrary, it deteriorated. The new Dato' Kelana was deeply concerned with Dato' Bandar's unchecked influence, and sought ways to counter his adversary's power.
When the British changed their non-interventionist policy in 1873 by replacing Sir Harry Ord with Sir Andrew Clarke as the Governor of the Straits Settlements, Dato' Kelana immediately realised that the British could strengthen his position in Sungai Ujong. Dato' Kelana contacted the British in Malacca and began and lobbying them to support him. In April 1874, Sir Andrew Clarke used Dato' Kelana's request as a means to build British presence in Sungai Ujong and Negeri Sembilan in general. Clarke acknowledged Dato' Kelana as the legitimate chief of Sungai Ujong. The British and Dato' Kelana signed a treaty which required Dato' Kelana to rule Sungai Ujong justly, protect traders, and prevent any anti-British action there. Dato' Bandar was not invited to sign the agreement and hence asserted that he was not bound by the agreement. Moreover, Dato' Bandar and the locals disapproved of the British presence in Sungai Ujong. This furthered Dato' Kelana's unpopularity there.
Soon, a company led by William A. Pickering, of the Chinese Protectorate from the Straits Settlements, was sent to Sungai Ujong to assess the situation. He recognised the predicament Dato' Kelana was in and reported back to the Straits Settlements. This prompted the British to send 160 soldiers to Sungai Ujong to help Pickering defeat Dato' Bandar. At the end of 1874, Dato' Bandar fled to Kepayang. Despite this defeat, the British paid him a pension and granted him asylum in Singapore.
As the year progressed, British influence increased to the point that an assistant resident was placed there to advise and assist Dato' Kelana with the governance of Sungai Ujong.

### Pahang

The British became involved in the administration of Pahang after a civil war between two candidates to the kingdom's throne between 1858 and 1863.

## Centralisation (1890s–1910s)

To streamline the administration of the Malay states, and especially to protect and further develop the lucrative trade in tin and rubber, Britain sought to consolidate and centralise control by federating Selangor, Perak, Negeri Sembilan and Pahang into the Federated Malay States (FMS), with Kuala Lumpur as its capital. The Residents-General administered the federation but compromised by allowing the sultans to retain limited powers as the authority on Islam and Malay customs. Modern legislation was introduced with the creation of the Federal Council. Although the sultans had less power than their counterparts in the Unfederated Malay States, the FMS enjoyed a much higher degree of modernisation. Federalisation also brought benefit through cooperative economic development, as evident in the earlier period, when Pahang was developed through fiscal federalism, using fiscal equalisation payment funds derived from the revenue of Selangor and Perak.
The Unfederated Malay States, on the other hand, maintained their quasi-independence, had more autonomy, and instead of having a Resident they were required only to accept a British Advisor, though in reality they were still bound by treaty to accept the advice. The British undertook far less economic exploitation in the Unfederated Malay States as they primarily desired to simply keep them in line; limited economic potential in these states deterred the British from further political meddling in the Unfederated Malay States. Perlis, Kedah, Kelantan and Terengganu were surrendered by Siam after the Anglo-Siamese Treaty of 1909. Independent Johor, meanwhile, had to surrender Singapore to the British earlier on. Despite the Sultan's political effort, he was forced to accept an advisor in 1914, becoming the last Malay state to lose its sovereignty (although British involvement in Johor began as early as 1885).
This period of slow consolidation of power into a centralised government and compromise – the sultans retain their reign but not rule in their states – would have a great impact on the later road to nationhood. It effectively marked the transition of the idea of Malay states from a collection of separate lands governed by their own different feudal rulers, towards a federation with Westminster-style constitutional monarchy. This became the accepted model for the future Federation of Malaya and ultimately Malaysia.
By 1910 the British had established seven polities on the Malay Peninsula – the Straits Settlements, the Federated Malay States and the standalone protectorates of Perlis, Kedah, Kelantan, Terengganu and Johor. The First World War had a limited impact on Malaya, with notable events including the Battle of Penang and the Kelantan rebellion.

## Decentralisation (1920s)

British policy in the late 19th and the early 20th century had been the centralisation of the Federated Malay States (FMS), which was headed by the High Commissioner, who was also the governor of the Straits Settlements. All four British Residents, who acted as a British representative in the FMS were answerable to a Resident General in Kuala Lumpur, who in turn reported back to High Commissioner. Crucial state government departments had to report to their federal headquarters in Kuala Lumpur. Meanwhile, the Unfederated Malay States began to receive British advisers but they remained more independent than the FMS.
In 1909 however, High Commissioner Sir John Anderson expressed concerns over over-centralisation, which was marginalisation local sultans away from policymaking. The British had a formal pro-Malay policy and the colonial administrators were careful in developing mutual trust with the Malay sultans. However, the centralisation had eroded the trust, which the some British officials felt important to regain. This led to the creation of the Federal Council, which the sultans were members of along with representatives from the colonial government and members of the non-Malay communities. The creation of the council however failed to distribute powers to the individual states of the FMS. Another attempt at decentralisation was carried out in 1925 by Sir Laurence Guillemard, the High Commissioner from 1920 to 1927. This led to what some termed the Decentralisation Debate of 1925–1927. During the 1920s, the British also began affirmative action for the Malays in the FMS civil service to further entice the Unfederated Malay States to join the federation by proving that the Malays would have a role in the running of the government. While the Malays supported the proposal because it would give them more powers, Chinese merchants and British planters argued against it, fearing decentralisation would affect efficiency badly and slow the building of a unified modern state. The next High Commissioner, Sir Cecil Clementi, arriving from Hong Kong in 1930, pushed harder for decentralisation, believing that it would entice the Unfederated Malay States to join the FMS, forming a Malayan union. He envisaged the union would eventually be joined by the Straits Settlements as well as British Borneo.

## Economic depression (1930s)

During the 1930s, the world economy was in a depression. Malaya was affected by the depression due to its the integration in the global supply chain.

## The Second World War (1941–1945)

The First World War did not affect Malaya directly, aside from a naval skirmish between the renegade German cruiser SMS Emden and the Russian cruiser Zhemchug off the coast of George Town, in what became known as the Battle of Penang.
The Second World War however consumed the country. Japan invaded Malaya in 1941, as part of the coordinated attack that started at Pearl Harbor. Malaya and Singapore were under Japanese occupation from 1942 until 1945. Japan rewarded Siam for its co-operation during this period by giving it the state of Perlis, Kedah, Kelantan and Terengganu. The rest of Malaya was governed as a single colony from Singapore.
After Japan's surrender at the end of the Second World War, Malaya and Singapore were placed under British Military Administration.

## Decolonisation (1945–1963)

Within a year after the Second World War, the loose administration of British Malaya was finally consolidated with the formation of the Malayan Union on 1 April 1946. Singapore, however, was not included and was considered a crown colony by itself. The new union was greeted with strong opposition from the local Malays. The opposition revolved around two issues: loose citizenship requirements and reduction in the Malay rulers' power. Due to the pressure exerted, the union was replaced with the Federation of Malaya on 31 January 1948. The federation achieved independence on 31 August 1957. On 16 September 1963 the federation became Malaysia, by bringing Singapore (self-governing since 1959), Sarawak and North Borneo (Sabah) into the federation as new states. Singapore was expelled from the federation on 9 August 1965.