Legal & Governance System
In Malacca, trade law is not bureaucracy. It is sovereignty made visible — the architecture of trust that allows a hundred nations to do business without drawing swords. When that architecture is subverted, the city does not merely lose revenue. It loses the reason it exists.
The Undang-Undang Melaka (Laws of Malacca) and its maritime counterpart, the Undang-Undang Laut Melaka (Maritime Laws of Malacca), are among the oldest codified legal texts in Southeast Asia. They are not background detail. They are franchise assets — the mechanism through which political thriller, trade espionage, and institutional decay become playable and narratable.
This section establishes how the legal and governance system operates, where it bends, where it breaks, and how foreign powers exploit its vulnerabilities long before they fire a single cannon.
The Dual Legal Framework
Malacca operates under two overlapping legal traditions:
Adat — Customary law predating Islam, rooted in communal consensus, oral tradition, and the Covenant of Sang Sapurba. Adat governs interpersonal disputes, inheritance, land use, marriage, and the obligations between ruler and ruled. It is flexible, precedent-driven, and deeply embedded in daily life. Adat is the legal expression of the Malay social contract: the ruler protects; the people obey; the Bendahara adjudicates when these duties collide.
Hukum Syarak — Islamic jurisprudence, arriving with Gujarati and Arab traders and gaining institutional weight through the ulama. Hukum Syarak governs matters of faith, religious observance, and increasingly — through the ambitions of the religious authorities — commercial morality and public behaviour. Its authority is growing during the franchise’s primary era, but it has not yet displaced adat as the dominant legal framework. The tension between these two systems is a live political fault line.
The Undang-Undang Melaka itself is a synthesis: Islamic commercial principles layered over pre-existing Malay customary practice, codified under royal authority. It is not purely secular, not purely religious, and not purely customary. It is Malacca’s distinctive legal innovation — and its vulnerability, because any faction can claim interpretive authority over their preferred strand.
The Shahbandar System
The Shahbandar system is the operational heart of Malacca’s trade governance and the single most important institutional mechanic for the franchise’s political-thriller dimension.
Structure
Four Shahbandars oversee Malacca’s foreign trade, each responsible for a defined set of merchant communities:
| Shahbandar | Communities Governed | Key Commodities |
|---|---|---|
| Shahbandar of Gujarat | Gujarati, Bengali, Arab, and Pegu traders | Textiles, gemstones, opium, horses, incense |
| Shahbandar of the Coromandel | Tamil, Telugu, and other South Indian merchants | Cotton, metalwork, spices (re-export), temple goods |
| Shahbandar of China | Chinese (Hokkien, Cantonese), Ryukyuan, Siamese, Cham traders | Silk, porcelain, tea, lacquerware, iron goods |
| Shahbandar of the Islands | Javanese, Sumatran, Moluccan, Bugis, Filipino traders | Cloves, nutmeg, mace, camphor, tropical hardwoods, tin |
Each Shahbandar is appointed by the Sultan on the Bendahara’s recommendation. The appointee is typically a senior merchant from the governed community — someone trusted by both the crown and the traders. This dual allegiance is by design: the Shahbandar must be credible to foreign merchants while remaining answerable to Malaccan authority.
Powers and Responsibilities
Each Shahbandar exercises considerable authority within their jurisdiction:
Tariff collection. The Shahbandar assesses and collects duties on all goods entering and leaving the port under their jurisdiction. Standard tariffs range from three to six per cent of cargo value, but rates are negotiable — and that negotiability is where corruption breeds.
Dispute resolution. Commercial disputes between merchants of the same community are adjudicated by their Shahbandar according to the customs of that community. Cross-community disputes escalate to the Bendahara or, in extreme cases, the Sultan’s court. The Shahbandar’s court is the first and most common forum for trade justice.
Warehouse allocation. Dock space, warehouse priority, and anchorage positions are assigned by the Shahbandar. In a port where a ship’s cargo can spoil if it waits too long for unloading, warehouse allocation is power.
Intelligence. Every Shahbandar operates an informal intelligence network. They know which ships carry what, who owes whom, and where contraband moves. The Bendahara’s intelligence apparatus — and by extension the game protagonist’s mata-mata operations — relies on Shahbandar intelligence as a primary source.
Franchise Application
The Shahbandar system is where trade becomes thriller. A corrupt Shahbandar can:
- Reduce tariffs for favoured merchants, starving the Sultanate’s treasury while enriching allies
- Delay warehouse allocation for targeted traders, spoiling perishable cargo and destroying competitors
- Falsify cargo manifests to conceal smuggling operations or disguise the movement of weapons
- Feed intelligence to foreign powers — or withhold it from the Bendahara
- Grant preferential anchorage to Portuguese vessels, normalising their presence before invasion
A clever protagonist can:
- Infiltrate a Shahbandar’s court as a merchant, translator, or scribe
- Expose tariff fraud by comparing manifests across multiple Shahbandar jurisdictions
- Use warehouse allocation disputes as cover for intelligence operations
- Turn a Shahbandar’s informants into double agents
- Trace the financial trail of Portuguese subversion through falsified trade records
The Court of the Bendahara
The Bendahara’s court is the supreme appellate authority for all civil and commercial disputes. It is also the institutional seat from which Tun Perak exercises his extraordinary influence over the Sultanate’s governance.
Jurisdiction. Any dispute that crosses community lines — a Gujarati merchant accusing a Chinese trader of fraud, a Javanese ship captain contesting Malay harbour fees — escalates to the Bendahara. The Bendahara also hears appeals from Shahbandar courts when a party claims the Shahbandar has acted unjustly or corruptly.
Process. The Bendahara’s court operates on testimony, material evidence (cargo manifests, trade seals, witness accounts), and the Bendahara’s personal judgement. There is no jury. The Bendahara weighs the evidence, consults adat and the Undang-Undang Melaka, and renders a binding decision. His judgements are final unless the Sultan intervenes — which the Sultan rarely does, because overruling the Bendahara destabilises the entire system.
The power of precedent. While the Undang-Undang Melaka provides the legal framework, the Bendahara’s accumulated rulings create de facto case law. Tun Perak’s decades in office mean that his interpretations have become inseparable from the law itself. This creates a governance vulnerability: when Tun Perak dies or falls, the institutional memory of the legal system goes with him.
The Undang-Undang Melaka — Key Provisions
The following provisions of the Undang-Undang Melaka have direct franchise application — as plot engines, gameplay mechanics, or both:
Debt bondage. A debtor who cannot repay may be bound to service to the creditor until the debt is discharged. This is not slavery in the chattel sense — the bonded person retains rights and the bond expires with payment — but it creates a coercive labour system that foreign powers exploit. Portuguese agents offer loans to struggling merchants, then use debt bondage to build networks of obligation.
Smuggling penalties. Goods moved without Shahbandar inspection are subject to confiscation. The smuggler may be fined, imprisoned, or banished. In practice, enforcement is selective — and that selectivity is itself a form of political power. The Temenggung’s hulubalang enforce smuggling laws, creating a second power centre that competes with the Shahbandars.
The law of wreck. A ship that founders in the Straits and its cargo become the property of the nearest coastal authority — in practice, the Orang Laut communities or the Sultanate. This law creates a permanent incentive for the Orang Laut to maintain their role as sentinels: salvage rights are their compensation. It also creates vulnerability: if foreign powers bribe or coerce coastal communities, they gain both intelligence and material assets.
The crime of derhaka. Treason against the sovereign. The most severe offence in the Undang-Undang Melaka, punishable by death and the confiscation of the traitor’s entire household. Derhaka is the legal weapon wielded against Hang Jebat — and the legal threat that keeps every court official in line. Its power depends on the legitimacy of the sovereign: when the Sultan’s own behaviour approaches tyranny, the definition of derhaka becomes the most contested question in the Sultanate.
Weights and measures. The Undang-Undang Melaka standardises commercial weights and measures across the port. A trader caught using false weights faces confiscation of goods and public shaming. Standardisation is Malacca’s competitive advantage over rival ports — and its erosion through corruption is an early symptom of institutional decay.
The protection of foreign traders. The laws explicitly guarantee the safety and fair treatment of foreign merchants. A trader who is robbed or cheated in Malacca may appeal to the Shahbandar for restitution, and the Shahbandar is obligated to act. This guarantee is the foundation of Malacca’s reputation — and the Portuguese will eventually cite its violation (the 1509 attack on Sequeira’s delegation) as justification for invasion.
The Maritime Laws — Undang-Undang Laut Melaka
The Undang-Undang Laut Melaka governs maritime conduct in the Straits and is enforced by the Laksamana’s fleet and the Orang Laut patrol networks.
Piracy. Defined as any attack on a vessel flying a recognised flag within Malaccan waters. The Laksamana has authority to pursue and execute pirates without trial. In practice, the distinction between piracy and legitimate warfare is politically determined — an attack by Javanese raiders is piracy; an attack on a Siamese vessel may be state policy.
Passage rights. All vessels transiting the Straits must stop at Malacca and submit to inspection unless granted explicit exemption. This is the legal basis for Malacca’s monopoly on Straits trade — and the provision that the Portuguese will ultimately shatter.
The nakhoda’s authority. The ship captain (nakhoda) holds absolute authority aboard their vessel. They are personally liable for their crew’s conduct in port, for the accuracy of their cargo manifest, and for any debts incurred during the voyage. A nakhoda who flees port with unpaid debts becomes an outlaw in Malaccan waters.
Salvage and rescue. Any vessel that witnesses a shipwreck is legally obligated to render aid. Failure to do so is a criminal offence. Salvaged goods are divided between the rescuer, the Shahbandar, and the original owner (if they can be identified).
How the Portuguese Subverted the System
The Portuguese conquest of 1511 is the franchise’s defining catastrophe, but the legal subversion that preceded it is where the political thriller lives. The Portuguese did not simply arrive with ships and cannons. They arrived with commercial leverage and a systematic strategy for undermining the institutions that held Malacca together.
Phase 1 — Normalisation (pre-1509). Portuguese traders and agents arrive as ordinary merchants, operating within the Shahbandar system. They pay tariffs, submit to inspections, and establish trading relationships. Their presence is legally unremarkable. They are learning the system from the inside.
Phase 2 — Preferential relationships. Portuguese agents cultivate relationships with specific Shahbandars, offering advantageous trade terms, luxury gifts, and — critically — access to European goods not available through existing trade networks. A Shahbandar who favours Portuguese merchants gains personal wealth at the expense of other communities. The imbalance is subtle at first; it compounds.
Phase 3 — Intelligence extraction. Through their commercial relationships, Portuguese agents map the Shahbandar system’s vulnerabilities: which officials are susceptible to bribery, which trade routes are unpatrolled, where the inspection regime has gaps. This intelligence flows back to Goa and Lisbon.
Phase 4 — Institutional erosion. By the time of Sequeira’s 1509 expedition, Portuguese agents have identified and cultivated factional allies within the Sultanate — merchants who profit from Portuguese trade and officials who have been compromised. The legal system that should detect and expel foreign subversion has been partially co-opted.
Phase 5 — The provocation. The 1509 confrontation between Sequeira’s delegation and Malaccan forces provides the legal pretext Albuquerque needs. The attack on a Portuguese trading delegation — regardless of its actual causes — is reframed as a violation of the Undang-Undang Melaka’s own guarantee of foreign trader protection. Malacca’s own law is weaponised against it.
Phase 6 — Conquest (1511). Albuquerque arrives with an invasion fleet. The legal and commercial subversion of the preceding years has already fractured the Sultanate’s ability to mount a unified defence. Some merchant communities remain neutral or actively assist the Portuguese, having been given assurances of continued trade privileges under new management.
Gameplay and Plot Applications
The legal and governance system provides franchise creators with a rich set of narrative and mechanical tools:
Trade manipulation as espionage. Missions where the protagonist must trace the financial trail of Portuguese subversion through falsified cargo manifests, bribed Shahbandars, and suspicious tariff reductions. The evidence is in the ledgers, not the armoury.
Court intrigue. Scenarios where the protagonist must navigate the Bendahara’s court — presenting evidence, discrediting witnesses, and managing political relationships to secure a favourable ruling. The courtroom as stealth arena.
Debt bondage networks. The protagonist discovers that Portuguese agents are using debt bondage to build a network of obligated informants among struggling merchants. Freeing these merchants — or turning them — requires understanding the legal system well enough to exploit it.
The derhaka dilemma. The legal definition of treason becomes contested as the Sultan’s behaviour grows more erratic. Characters must decide whether opposing a corrupt sovereign is loyalty to the Covenant or betrayal of the crown. The law provides no clear answer — only consequences.
Maritime jurisdiction. Missions at sea where the distinction between piracy and legitimate action depends on political context. The protagonist may need to enforce — or violate — maritime law depending on whose interests they serve.
Weights and measures fraud. A seemingly mundane investigation into false weights at the bazaar reveals a systematic campaign to debase Malacca’s commercial standards — an early warning of institutional collapse that most people dismiss as petty crime.
The Undang-Undang Melaka is not a relic. It is the franchise’s operating system — the rules that make Malacca work, and whose subversion is the mechanism of its destruction. Every corrupt official, every falsified manifest, every unpunished smuggler is a line of code being rewritten. By the time the Portuguese arrive with their cannons, the system has already been hacked.