Imagine a fleet of ships off the coast. Word runs through the market that an army from the north is coming. In the palace hall, the ruler turns to his minister and asks what should be done. The minister is calm. His answer will decide whether Melaka lives or falls.
Who he was
Tun Perak was the Bendahara of Melaka. The Bendahara was the highest official under the ruler. He led the ministers, ran the daily affairs of the state and advised on law, war and trade. Melaka also had a Laksamana (admiral), a Temenggung (chief of police and security), and a Penghulu Bendahari (keeper of the treasury).
According to the Malay Annals (Sejarah Melayu), Tun Perak first served as a chief of Klang, then rose to be Bendahara in the mid-1400s and held the post until his death in the late 1490s. That was around forty years, through the reigns of several sultans. Melaka grew from a small port into a large and rich trading city in those years.
The women of Klang
One story in the Annals is famous. When enemy forces came near, the Klang area had few men ready to fight. Tun Perak told the women to put up their hair, dress as men and carry weapons so that the enemy would think a great force waited. The story says the enemy left. Whether it happened exactly so, we cannot prove. The Annals tell it as a lesson in clever leadership.
A minister and his rulers
The Annals present Tun Perak as a wise adviser who sometimes spoke plainly to rulers. They tell of him settling quarrels, planning campaigns and managing the great trade. Under his time, Melaka held off attacks from the north and extended its power along the Peninsula and across the straits to parts of Sumatra. Historians say Melaka's rise came from a mix of trade, alliances, sea power and good administration, and Tun Perak is the name most linked to that mix.
The Annals also describe the Bendahara's family. His relatives held other offices. The families of ministers often married into each other and into the royal house. This is common in courts all over the world.
Words of the court
Many Malay titles from Melaka are still used or remembered.
- Bendahara: the chief minister.
- Laksamana: the admiral.
- Temenggung: the head of security.
- Syahbandar: the harbour master, who met foreign ships and traders. Melaka had four, for traders from different regions.
- Tun: a title of high rank, still used in Malaysia today for senior honours.
The Malay Annals were written in the Malay language of the court. They use many Arabic words for religion and law and Sanskrit words for rank, which shows how far Melaka's culture reached.
What Melaka was like
In Tun Perak's time Melaka was a port where many languages were heard. Ships came from China, India, Arabia and the islands of the archipelago. The sultans were Muslim, and the faith spread through the trade. Law was kept by codes, such as the Melaka maritime laws and the Laws of Melaka, which dealt with markets, ships and crimes. These were later copied in other Malay states.
The Portuguese captured Melaka in 1511. The old court moved south and became the Johor sultanate, which continued the line of Malay rule and its customs.
Where you can still see it today
- In Melaka. The Sultanate Palace replica, built after a description in the Malay Annals, holds a cultural museum. It stands near the foot of St Paul's Hill.
- In the Malay Annals. You can read the text in English or Malay. Look for the passages on the Bendahara.
- In Klang. Klang has places linked to its Malay and royal past, and local heritage sites tell the area's story.
- In titles. Titles such as Tun and Tan Sri belong to the same long tradition.
What DNA can tell, and what it cannot
Melaka was a city of many peoples. Malay court families married locally and with other communities. Later centuries added more. For this reason, region estimates for Malay families in the Melaka area can show a mix of Southeast Asian and other lines.
No DNA test can tell whether you descend from Tun Perak or any court family. Court descent is a matter of recorded family history. DNA also does not decide who anyone is. We make no claim here about any royal line.
What we do not know
Tun Perak's story comes from the Malay Annals, which were put together long after the events. The text is a mix of history, memory and moral tale. Historians read it with care. They match it with Chinese, Portuguese and other records when they can.
More stories like this
Parameswara and the founding of Melaka
A prince from Palembang chose a river mouth that would change the region.
Melaka · 4 min readZheng He and the treasure fleets in Melaka
A Chinese admiral visited Melaka seven times.
Melaka · 4 min readHang Li Po and the legend of the Chinese princess
A famous tale about a link between the Ming court and Melaka.
Melaka · 4 min readHang Tuah and the Malay hero stories
Legend, history and national pride mixed in one hero's name.





