Malaysia: a history from the Malacca Sultanate to a modern federation

A trading crossroads where Islam spread through the Malacca Sultanate, Malaysia won independence in 1957 and is now one of Pakistan's close partners in the Muslim world.

By Last reviewed

Malaysia
Malaysia and its neighbours. Borders approximate.

Key facts

Capital
Kuala Lumpur (government in Putrajaya)
Independence
31 August 1957 (Malaya); Malaysia formed 16 September 1963
Population
About 34 million
Language
Malay
Government
Federal constitutional monarchy with a king chosen in rotation from nine Malay rulers
Religion
Islam is the official religion; about 64 per cent are Muslim

Through the ages

The main periods of Malaysia's history, 100 CE to today. Recent centuries are drawn wider so they can be read.

  1. Early trading kingdoms100 CE to 1400
  2. Malacca Sultanate1400 to 1511
  3. Portuguese and Dutch Malacca1511 to 1824
  4. British Malaya1786 to 1957
  5. Japanese occupation1941 to 1945
  6. Independent Malaya and Malaysia1957 to today

Timeline

  1. c. 1400
    Empires and dynasties

    Malacca is founded

    Parameswara, a prince from Sumatra, founds Malacca, which grows into the greatest port of South-East Asia.

  2. c. 1414
    Culture and faith

    A Muslim sultanate

    Malacca's rulers embrace Islam, and the sultanate becomes a centre from which Islam spreads across the Malay world.

  3. 1511
    Wars and conflict

    The Portuguese take Malacca

    A Portuguese fleet under Afonso de Albuquerque captures Malacca. The Dutch take it in 1641.

  4. 1786
    Empires and dynasties

    British Penang

    The British East India Company acquires Penang, followed by Singapore in 1819 and Malacca in 1824.

  5. 1874
    Empires and dynasties

    British protection

    The Pangkor Treaty begins British control over the Malay states. Tin mines and rubber estates bring in workers from China and India.

  6. 1941
    Wars and conflict

    Japanese invasion

    Japan invades Malaya, and Singapore falls in February 1942.

  7. 1948
    Wars and conflict

    The Emergency

    A communist insurgency begins. British and Malayan forces fight it until 1960.

  8. 31 August 1957
    Independence

    Merdeka

    Malaya becomes independent, with Tunku Abdul Rahman as its first prime minister.

  9. 16 September 1963
    Independence

    Malaysia

    Malaya joins with Sabah, Sarawak and Singapore to form Malaysia. Singapore leaves in 1965.

  10. 13 May 1969
    Politics

    Race riots

    Riots in Kuala Lumpur lead to policies favouring the Malay majority in business and education.

  11. 1971
    Economy

    The New Economic Policy

    The government launches policies to reduce poverty and raise the economic share of Malays.

  12. 1981
    Politics

    Mahathir Mohamad

    Mahathir Mohamad becomes prime minister and leads Malaysia's rapid industrial growth for 22 years.

  13. 1998
    Politics

    Crisis and Anwar

    During the Asian financial crisis, Mahathir sacks his deputy, Anwar Ibrahim, who is later jailed.

  14. 1999
    Economy

    The Petronas Towers

    The Petronas Twin Towers open in Kuala Lumpur, then the tallest buildings in the world.

  15. 2003
    Politics

    Mahathir steps down

    Abdullah Ahmad Badawi succeeds Mahathir Mohamad after 22 years.

  16. 2018
    Politics

    A change of government

    The coalition that had ruled since independence loses an election for the first time, and Mahathir returns as prime minister at 92.

The crossroads of the sea

The Malay peninsula lies on the Strait of Malacca, the shortest sea route between the Indian Ocean and the South China Sea. For centuries ships from India, Arabia and China stopped at its ports. Around 1400 a prince from Sumatra, Parameswara, founded Malacca, which grew into the greatest port of South-East Asia. Its rulers embraced Islam early in the fifteenth century, and the Malacca Sultanate became the centre from which Islam, the Malay language and Malay court culture spread across the region.

European rivals

In 1511 the Portuguese captured Malacca, and in 1641 the Dutch took it from them. The British East India Company acquired Penang in 1786, founded Singapore in 1819 and gained Malacca in 1824. From 1874 Britain extended its control over the Malay sultanates, keeping the sultans as rulers in matters of Islam and Malay custom. Tin mines and rubber plantations drew large numbers of workers from China and southern India, creating the multi-ethnic society of today.

Independence

Japan occupied Malaya from 1941 to 1945. After the war a communist insurgency, known as the Emergency, lasted until 1960. Malaya won independence peacefully on 31 August 1957 under Tunku Abdul Rahman, and in 1963 it joined Sabah, Sarawak and Singapore to form Malaysia; Singapore left two years later. After race riots in 1969, the government introduced policies to raise the economic position of Malays.

A modern economy

Under Mahathir Mohamad, prime minister from 1981 to 2003, Malaysia became an industrial and trading economy, symbolised by the Petronas Twin Towers. In 2018 the coalition that had governed since independence lost power for the first time, and Mahathir returned to office at the age of 92. Anwar Ibrahim became prime minister in 2022.

Malaysia and Pakistan

Malaysia and Pakistan are close partners in the Muslim world, working together in the OIC and the D-8 group. Mahathir and Imran Khan were close allies, though Pakistan withdrew from the Kuala Lumpur summit of December 2019, reportedly after objections from Saudi Arabia. Thousands of Pakistanis study and work in Malaysia, and Malaysia is one of Pakistan’s main suppliers of palm oil. Its people are Malay, Chinese, Indian and Indigenous, and its cities mix mosques, temples and churches. Kuala Lumpur grew from a tin-mining settlement founded in the 1850s into a modern capital.

For our latest reporting on Malaysia, see the news listed on this page.

Landmarks and heritage

From the 15th century

Melaka and George Town

Malacca and Penang

Historic port towns shaped by Malay, Chinese, Indian and European traders. A UNESCO World Heritage Site.

Natural site

Gunung Mulu National Park

Sarawak

Rainforest and some of the largest caves in the world. A UNESCO World Heritage Site.

Natural site

Kinabalu Park

Sabah

Mount Kinabalu and its rich plant life. A UNESCO World Heritage Site.

1999

Petronas Twin Towers

Kuala Lumpur

The 88-storey towers that became a symbol of modern Malaysia.

Terms you will meet in the news

Merdeka
Malay for independence, celebrated on 31 August.
Bumiputera
Malays and other Indigenous peoples, who receive preferences in education, jobs and business under national policy.
Yang di-Pertuan Agong
Malaysia's king, chosen every five years from among the nine hereditary Malay rulers.
Malacca Sultanate
The 15th-century Muslim kingdom centred on Malacca, the cradle of Malay culture and Islam in the region.

Quick answers

When did Malaysia become independent?

Malaya became independent on 31 August 1957, and the wider federation of Malaysia was formed on 16 September 1963.

How does Malaysia choose its king?

The nine hereditary Malay rulers take turns, choosing one of themselves as king for a five-year term.

How close are Malaysia and Pakistan?

Very close. Both are OIC members and D-8 partners, many Pakistanis study and work in Malaysia, and Malaysia is a major supplier of palm oil to Pakistan.

What is the capital of Malaysia?

Kuala Lumpur, though most government offices are in Putrajaya.

Sources and further reading

Compiled by The Indus Compass from the sources above and standard reference works, and reviewed 28 November 2026. Dates before the modern era are approximate and some are debated by historians. Spotted a mistake? Tell the newsroom and we will correct it.