Encyclopedia MalaysiaIndependent reference

What Was the Malacca Sultanate and Its Role in Regional Trade and Islam

The 15th-century Malacca Sultanate as a trading polity, its administrative and legal structures, and its contested role in Malaysian historical memory.

What Was the Malacca Sultanate and Its Role in Regional Trade and Islam

The Malacca Sultanate was a 15th-century maritime polity that turned the Straits of Malacca into the most contested chokepoint in Asian trade. It was not a nation-state. It was a dynastic trading empire that ruled a polyglot port city and extracted tribute from coastal settlements. Its sultans did not command a vast agricultural hinterland; they controlled a deep-water harbour, a customs house, and a legal system that convinced Gujarati, Tamil, Javanese, and Chinese merchants to offload cargo in Malacca rather than Pasai or Ayutthaya. The polity lasted barely a century, from Parameswara's coronation around 1400 to Afonso de Albuquerque's assault in 1511, but the model it built, an Islamic trading sultanate governed through a quartet of great offices of state, outlived the city. The Sejarah Melayu later recast that century as a golden age of Malay kingship, and modern Malaysia has drawn on that memory for genealogical legitimacy, national symbols, and a narrative of pre-colonial greatness that the Portuguese conquest cut short.

Parameswara Founding Malacca

A Palembang Prince Flees Temasek

Parameswara was a Palembang prince of Srivijayan lineage who fled a Javanese attack on Temasek, the settlement on the site of modern Singapore, in the 1390s. He and a small retinue moved up the west coast of the Malay Peninsula, pausing at Muar and Bertam before settling at a fishing village on the Malacca River around 1400. The Sejarah Melayu supplies the famous legend of a mouse deer kicking his hunting dogs. Parameswara took it as an omen to build a city where the weak could defy the strong. The historical record is thinner. Ming dynasty sources record a ruler of Malacca, probably Parameswara under the name Bai-li-mi-su-la, sending tribute missions to the Yongle Emperor from 1405. That tribute relationship bought Malacca Chinese protection against Siamese encroachment and gave the new port access to the vast Indian Ocean trade network that moved pepper, textiles, and porcelain through the Straits.

Conversion To Islam And A Dual Identity

Parameswara converted to Islam around 1414, adopting the title Sultan Iskandar Shah, a move that linked Malacca to the Muslim trading diaspora already dominant in Sumatra and the Indian Ocean. His conversion was arguably the single most consequential religious decision in Malay history. It gave Malacca a legal and cultural vocabulary shared with Pasai, Gujarat, and the Hadhrami network of Arab traders, while the tribute link to Ming China provided a geopolitical counterweight to Ayutthaya. Parameswara died around 1424, and the sultanate he founded spent the next three reigns consolidating that dual identity: an Islamic polity under Chinese protection, sitting astride the main sea lane between India and the South China Sea.

Malacca Sultanate Trade And Government

The Entrepôt Model

The polity's wealth came from an entrepôt model. Malacca produced almost nothing for export; it collected customs duties, harbour fees, and market taxes from ships that exchanged cloth from Gujarat, pepper from Sumatra and the Malabar coast, porcelain and silk from China, and sandalwood from Timor. The government built bonded warehouses, or godowns, on the riverbank, and the royal treasury advanced capital to merchants who could not pay duties in cash. Tomé Pires's Suma Oriental, written just before the Portuguese conquest, recorded 84 languages spoken in the city and a harbour master who could communicate in most of them. The sultan collected a 6% customs duty from merchants from the eastern Indian Ocean and a 3% duty from those from the western archipelago and China, a differential that encouraged Chinese and Javanese traders to use Malacca as a trans-shipment hub.

The Four Great Offices

The administrative machine that ran this port rested on four great offices. The Bendahara was the chief minister, military commander, and regent in the sultan's absence; the office was held by the same family, the lineage of Tun Perak, for most of the 15th century. The Laksamana commanded the fleet and the harbour police, responsible for intercepting pirate flotillas and enforcing the maritime law code. The Temenggong was the chief of police and the magistrate for criminal law, overseeing the city's markets, weights and measures, and the prison. The Penghulu Bendahari, the fourth office, managed the treasury and the royal household accounts. This four-officer system did not invent anything new; it adapted the bureaucratic structure of earlier Srivijayan polities to the scale of a city that, by the 1480s, held a permanent resident population swollen by a transient merchant community that doubled the number during the monsoon trading season.

Malacca Legal Codes

Hukum Kanun Melaka

Two codifications made the administration legible across a polyglot merchant community. The Hukum Kanun Melaka was the civil and criminal code, compiled in the reign of Sultan Muzaffar Shah (1446-1456) and expanded under Sultan Mansur Shah and his successors. It set out the law of debt, contract, slavery, and marriage, and it prescribed mutilation and death penalties for theft, adultery, and rebellion. The code was a deliberate hybrid: it drew on Islamic fiqh for marriage and inheritance but retained pre-Islamic adat for land tenure, royal succession, and the ritual obligations of the subject to the ruler. That adat element is what later Malay legal thinkers invoked to argue that Melakan law was compatible with but not identical to sharia, a distinction that still surfaces in Malaysian constitutional debates about the scope of syariah courts.

Undang-Undang Laut Melaka

The Undang-Undang Laut Melaka was the maritime code. It regulated the conduct of ships' captains, crew, and passengers, fixed the division of salvage after a shipwreck, and specified the punishment for mutiny and theft at sea. It assigned the nakhoda, the ship's master, authority over the crew and passengers for the duration of the voyage, a legal personality that a merchant could rely on when contracting for carriage of goods from Malacca to Pasai or Canton. The Laksamana's officers enforced the code in the harbour, and ship captains carried copies on board. Both codes were compiled in Jawi script, the Perso-Arabic script adapted for Malay, which became the administrative and literary script of the sultanate. No European trading port in the region possessed a comparable written corpus of commercial and criminal law before the 17th century.

Islam In The Malacca Sultanate

Islam entered the court through marriage, trade, and the prestige of the Pasai sultanate in north Sumatra. Parameswara's conversion around 1414 was followed by the systematic Islamisation of the ruling class under Sultan Muzaffar Shah, who declared Islam the state religion and invited scholars from Pasai, Gujarat, and the Hadhramaut to teach at the court. Sultan Mansur Shah (1459-1477) married a Pasai princess and sent his sons to study with Sufi teachers, embedding Islamic learning in the succession. By the 1470s, Malacca had become the primary centre for the dissemination of Islam into the Malay Peninsula, the east coast of Sumatra, and the Javanese ports of the north coast. The sultanate's Islamic identity was a credential for doing business with the Muslim trading network that controlled the pepper ports of Sumatra, the textile markets of Gujarat, and the spice route to the Moluccas.

The Islam of the 15th-century court was a Sufi-inflected Sunnism that tolerated the persistence of pre-Islamic ritual and the veneration of royal regalia. The Sejarah Melayu describes Sultan Mansur Shah consulting a Sufi teacher about the legality of the royal orchestra and receiving a ruling that permitted it, a passage that later Malay commentators read as evidence of an early, flexible Islam adaptable to local custom. That flexibility has been selectively remembered in modern Malaysia. Reformist movements since the 19th century have criticised the Malacca court's Islam as syncretic and insufficiently orthodox, but defenders point to the same flexibility as the reason Islam spread so rapidly through the archipelago without producing the mass conversion by the sword that characterised other regions.

The Sejarah Melayu And The Invention Of A Genealogy

The Sejarah Melayu, or Malay Annals, is the single most important source for the internal life of the sultanate and simultaneously the most unreliable. It was compiled in the Johor court, probably in the 1610s, a century after the fall of Malacca, for a successor sultanate that needed a legitimating genealogy. The text traces the sultan's ancestry back to Alexander the Great, narrates the conversion to Islam through a dream in which the Prophet Muhammad appears to the ruler, and embroiders the reign of Sultan Mansur Shah into a golden age of justice, poetry, and martial glory. It is a work of political theology, not a chronicle. When the Annals claim that no subject of Malacca ever fled from justice or that the ruler's justice extended to the animals of the forest, they are making a claim about the moral order of the kingdom, not reporting an observable fact.

Historians treat the Sejarah Melayu as a primary source for 15th-century court culture, protocol, and political vocabulary, but they do not use it to establish chronology or causal sequence. The text is why modern Malaysians can name Hang Tuah, the legendary Laksamana, and Hang Jebat, his friend who rebelled against the sultan. The Hang Tuah story, in which loyalty to the ruler trumps personal honour and friendship, became a national parable in Malaysian schools, and the debate about whether Jebat was a traitor or a proto-rebel against tyranny still animates Malay-language theatre and fiction. The Annals are the reason Malacca's history is a usable past, not a closed academic subject. Every generation rewrites Hang Tuah for its own purposes, and the source material is poetic enough to support almost any reading.

Ming Dynasty Relations And Admiral Zheng He

Malacca's survival in its first three decades depended on the Ming court. The sultanate sent at least 23 tribute missions to China between 1405 and 1500, and three Malaccan sultans made the journey in person. The Yongle Emperor's admiral, Zheng He, visited the port on five of his seven voyages between 1405 and 1433, and the Ming fleet used it as a supply base and a staging point for the crossing of the Bay of Bengal. Zheng He's fleet deposited a garrison and a fortified warehouse on a hill overlooking the harbour, a physical assertion of Ming protection that deterred Siamese expansion southward. The Ming relationship gave Malacca a monopoly on the China-Indian Ocean trade that no local rival, not Pasai, not Aru, not Siak, could challenge. When the Ming court withdrew from long-range naval expeditions after 1433, Malacca had already built the commercial network and the naval capacity to stand on its own.

The Chinese community of Malacca, which Pires estimated at several thousand by 1511, was a direct product of this relationship. Chinese merchants married locally, and their descendants formed the nucleus of the Baba community that persisted under Portuguese, Dutch, and British rule. The Ming connection also supplied the sultanate with gunpowder weapons and shipbuilding technology. Malacca's war-junks were modelled on Chinese designs, and the sultan's gunners were skilled in the use of bronze cannon, a technology that the Portuguese noted with alarm when they encountered it in 1509 and that they targeted first in the assault of 1511.

Tun Perak And The Military Consolidation Of The Sultanate

Amphibious Expansion Across The Peninsula

Tun Perak was the Bendahara under four sultans, from Sultan Muzaffar Shah through Sultan Mahmud Shah, a tenure of roughly forty years. He is the single figure most responsible for turning Malacca from a port with a small navy into a territorial power that controlled both coasts of the Malay Peninsula as far north as Kedah and as far south as the Riau-Lingga archipelago. He defeated a Siamese invasion at Muar, conquered Pahang to secure the east coast, and brought Kampar and Indragiri in Sumatra under Malaccan suzerainty. His strategy was amphibious: the Laksamana's fleet would land a force on a rival's coast, and the Bendahara's army would march overland to cut off retreat. The land army was composed of conscripted Malay peasants and Orang Laut sea people, the latter supplying the navigational skill and the knowledge of coastal tides that made Malaccan amphibious operations effective.

Marriage Alliances And The Centre That Held

Tun Perak's governance method was marriage alliance and hostage-taking. He married his daughters and nieces into the ruling families of subdued territories and required their sons to be raised at the Malacca court, a system that turned potential rebels into courtiers with a stake in the sultanate's survival. When Sultan Mahmud Shah executed Tun Perak's son on a false charge of adultery, the Bendahara did not rebel; he continued to serve, and the sultanate held together until his death in 1498. The collapse came swiftly afterward, a measure of how much the system depended on one man's competence. Within thirteen years of Tun Perak's death, the Portuguese had taken the city.

Portuguese Conquest 1511

Afonso de Albuquerque arrived off Malacca in July 1511 with 18 ships and about 1,200 Portuguese soldiers, plus several hundred Indian auxiliary troops. Sultan Mahmud Shah could field a large army and had a substantial artillery park of bronze cannon, but his forces were divided between his own faction and that of his son, and the Laksamana's fleet was outnumbered in heavy ships. Albuquerque demanded the release of Portuguese prisoners taken in a skirmish two years earlier; when Mahmud refused, the Portuguese assaulted the bridge that connected the two halves of the city. The first assault, on 25 July, failed. The second, on 10 August, succeeded after the Portuguese landed a force on the northern bank and rolled up the Malay defences from the flank. The sultan fled south to Muar and then to the Riau islands, and the Portuguese sacked the city for three days.

The conquest did not end the Melakan political system. Mahmud Shah and his son established a court in exile in Bintan and then in Johor, and the Johor-Riau successor sultanates maintained the four-officer structure, the legal codes, and the claim to be the legitimate heirs of Malacca for the next two centuries. The Portuguese held the city until 1641, when the Dutch, allied with Johor, took it. Malacca the city never recovered its commercial dominance; the Portuguese and Dutch diverted trade to their own networks, and the Straits became one contested lane among several. But the institutional legacy, the laws, the court culture, and the claim to be the standard for Malay kingship, outlasted the physical city by centuries, surfacing in the Johor sultanate, the Riau-Lingga sultanate, and eventually in the constitutional monarchy of independent Malaya.

The Sultanate In Malaysian Historical Memory

A Founding Myth For The Nation

Modern Malaysia has used the Malacca Sultanate as a founding myth. The national history curriculum presents it as the first independent Malay state, the source of the Malay language's standardisation, the origin point of Islam in the Peninsula, and the template for the constitutional monarchy. The Sejarah Melayu is treated as a national epic, not as a 17th-century court chronicle with a political agenda. The Hang Tuah story is compulsory reading in secondary school, and the phrase "Takkan Melayu hilang di dunia," "Never shall the Malays vanish from the world," attributed to Hang Tuah, appears on monuments and in political speeches. The legal codes are cited in contemporary debates about the historical basis for sharia in Malaysia, with conservatives arguing that the Hukum Kanun Melaka proves that an Islamic legal order is indigenous to the Peninsula and not a Middle Eastern import.

What The Memory Leaves Out

This memory work is selective. The sultanate was not a nation-state; it was a dynastic trading empire that ruled a polyglot port city and extracted tribute from coastal settlements. Its subjects included Tamils, Chinese, Javanese, Minangkabau, and Orang Laut, not only Malays. The Islam of the court co-existed with Hindu-Buddhist ritual and with the animist beliefs of the Orang Asli interior. The modern Malaysian state is a constitutional federation of nine Malay sultanates, two former Straits Settlements colonies, and two Borneo states with entirely different histories. Mapping the Malacca Sultanate directly onto that federation is a political choice, not a historical inference. The Portuguese conquest of 1511 ended the polity, but not its influence on the Johor-Riau successor sultanates, nor its utility as a symbolic resource for a 20th-century nation-state that needed a pre-colonial golden age.

The Four Great Offices of the Malacca Sultanate
OfficeFunctionNotable Holder
BendaharaChief minister, regent, army commander, and keeper of the royal seal; managed foreign relations and successionTun Perak (served c.1456–1498)
LaksamanaAdmiral of the fleet, harbour police chief, and enforcer of the Undang-Undang Laut Melaka; responsible for anti-piracy patrolsHang Tuah (legendary; historical basis disputed)
TemenggongChief of police, criminal magistrate, market inspector, and prison warden; responsible for weights, measures, and public orderSpecific names from the period are poorly attested
Penghulu BendahariTreasurer and royal household comptroller; managed customs revenue, godown receipts, and the sultan's privy purseSpecific names from the period are poorly attested

Common Questions

What was the Malacca Sultanate's main source of wealth?

Customs duties and harbour fees on goods trans-shipped through the port. Malacca produced little itself; it charged 3-6% duty on cargoes moving between India, China, and the Indonesian archipelago.

Did the sultanate control territory beyond the city?

Yes. Under Tun Perak, it controlled both coasts of the Peninsula to Kedah in the north and the Riau-Lingga archipelago in the south, plus vassal territories in east-coast Sumatra.

Why did the Portuguese succeed in 1511?

Sultan Mahmud Shah's court was divided by a succession dispute, the fleet was outnumbered in heavy ships, and Portuguese artillery destroyed the bridge that connected the city's two halves.

How does modern Malaysia use the sultanate's history?

The national curriculum presents it as the first Malay state and the origin of Islamic governance. The Sejarah Melayu and the Hang Tuah legend are compulsory school texts and recurring political symbols.