Malacca Sultanate
The Malacca Sultanate (; Jawi script: کسلطانن ملايو ملاک) was a Malay sultanate based in the modern-day state of Malacca, Malaysia. Conventional historical thesis marks c. 1400 as the founding year of the sultanate by King of Singapura, Parameswara, also known as Iskandar Shah (after he converted to Islam) from Palembang. but this year of Malacca establishment has been recently revised to be 1262. At the height of the sultanate's power in the 15th century, its capital grew into one of the most important transshipment ports of its time, with territory covering much of the Malay Peninsula , the Riau Islands and a significant portion of the northern coast of Sumatra in present-day Indonesia. As a bustling international trading port, Malacca emerged as a centre for Islamic learning and dissemination, and encouraged the development of the Malay language, literature and arts. It heralded the golden age of Malay sultanates in the archipelago, in which Classical Malay became the "lingua franca" of Maritime Southeast Asia and Jawi script became the primary medium for cultural, religious and intellectual exchange. It is through these intellectual, spiritual and cultural developments, the Malaccan era witnessed the establishment of a Malay identity, the  Malayisation of the region and the subsequent formation of an "Alam Melayu". In the year of 1511, the capital of Malacca fell to the Portuguese Empire, forcing the last Sultan, Mahmud Shah (r. 1488–1511), to retreat to the further reaches of his empire, where his progeny established new ruling dynasties, Johor and Perak. The political and cultural legacy of the sultanate remains to this day. For centuries, Malacca has been held up as an exemplar of Malay-Muslim civilisation. It established systems of trade, diplomacy, and governance that persisted well into the 19th century, and introduced concepts such as "daulat  – a distinctly Malay notion of sovereignty – that continues to shape contemporary understanding of Malay kingship. The fall of Malacca benefited Brunei when its ports became a new entrepôt as the kingdom emerged as a new Muslim empire in the Malay Archipelago, attracting many Muslim traders who fled from the Portuguese occupation after the ruler of Brunei's conversion to Islam. History. Early foundation. The series of raids launched by the Chola Empire in the 11th century had weakened the once glorious empire of Srivijaya. By the end of the 13th century, the already fragmented Srivijaya caught the attention of the 	Malacca Sultanate
2447179	expansionist Javanese King, Kertanegara of Singhasari. In 1275, he decreed the Pamalayu expedition to overrun Sumatra. By 1288, Singhasari naval expeditionary forces successfully sacked Jambi and Palembang and brought Malayu Dharmasraya—the successor state of Srivijaya, to its knees. In 1293 Singhasari was succeeded by Majapahit ruling the region. According to the Malay Annals, a prince from Palembang named Seri Teri Buana who claimed to be a descendant of Alexander the Great and Rajendra Chola I, stayed in the island of Bintan for several years before he set sail and landed on Temasek in 1299. The Orang Laut (Sea People	Malacca Sultanate
2447180	), famous for their loyal services to Srivijaya, eventually made him king of a new kingdom called Singapura. In the 14th century, Singapura developed concurrently with the Pax Mongolica era and rose from a small trading outpost into a centre of international trade with strong ties with the Yuan Dynasty. In an effort to revive the fortune of Malayu in Sumatra, in the 1370s, a Malay ruler of Palembang sent an envoy to the court of the first emperor of the newly established Ming dynasty. He invited China to resume the tributary system, just like Srivijaya did centuries earlier. Learning this 	Malacca Sultanate
2447181	diplomatic maneuver, immediately King Hayam Wuruk of Majapahit sent an envoy to Nanking, convinced the emperor that Malayu was their vassal, and was not an independent country. Subsequently, in 1377—a few years after the death of Gajah Mada, Majapahit sent a punitive naval attack against a rebellion in Palembang, which caused the complete destruction of Srivijaya and caused the diaspora of the Srivijayan princes and nobles. Rebellions against the Javanese rule ensued and attempts were made by the fleeing Malay princes to revive the empire, which left the area of southern Sumatra in chaos and desolation. By the second 	Malacca Sultanate
2447182	half of 14th century, Kingdom of Singapura grew wealthy. However, its success alarmed two regional powers at that time, Ayuthaya from the north and Majapahit from the south. As a result, the kingdom's fortified capital was attacked by at least two major foreign invasions before it was finally sacked by Majapahit in 1398. The fifth and last king, Parameswara fled to the west coast of the Malay Peninsula. Parameswara (also known as Iskandar Syah" in some accounts) fled north to Muar, Ujong Tanah and Biawak Busuk before reaching a fishing village at the mouth of Bertam river (modern-day  Malacca River). The village belonged to the "sea-sakai" or "orang laut" which were left alone by Majapahit forces that not only sacked Singapura but also Langkasuka and Pasai. As a result, the village became a safe haven and in the 1370s it began to receive a growing number of refugees running away from Mahapahit's attacks. By the time Parameswara reached Malacca in the early 1400s, the place already had a cosmopolitan feel with Buddhists from the north, Hindus from Palembang and Muslims from Pasai. Legend has it that Parameswara saw a mouse deer outwit his hunting dog into  the water when he was resting under the Malacca tree. He thought this bode well, remarking, 'this place is excellent, even the mouse deer is formidable; it is best that we establish a kingdom here'. Tradition holds that he named the settlement after the tree he was leaning against while witnessing the portentous event. Today, the mouse deer is part of modern Malacca's coat of arms. The name "Malacca" itself was derived from the fruit-bearing Melaka tree () scientifically termed as "Phyllanthus emblica". Another account of the naming origin of Malacca elaborates that during the reign of Sultan Muhammad  Shah (r. 1424–1444), the Arab merchants called the kingdom 'Malakat' (Arabic for 'congregation of merchants') because it was home to many trading communities. Growth. Following establishment of his new city in Malacca, Parameswara initiated the development of the place and laid the foundation of a trade port. The indigenous inhabitants of the straits, the Orang Laut, were employed to patrol the adjacent sea areas, to repel other petty pirates, and to direct traders to Malacca. Within years, news about Malacca becoming a centre of trade and commerce began to spread all over the eastern part of the world. In 1405 , Yongle Emperor of Ming Dynasty (r. 1402–1424) sent his envoy headed by Yin Qing to Malacca. Yin Qing's visit opened the way for the establishment of friendly relations between Malacca and China. Two years later, the legendary Admiral Zheng He made his first of six visits to Malacca. Chinese merchants began calling at the port and pioneering foreign trading bases in Malacca. Other foreign traders notably the Arabs, Indians, and Persians came to establish their trading bases and settle in Malacca, soaring its population to 2000. In 1411, Parameswara headed a royal party of 540 people and left for  China with Admiral Zheng He to visit the Ming court. In 1414, the "Ming Shilu" mentions that the son of the first ruler of Malacca visited Ming court to inform Yongle that his father had died. During the reign of Parameswara's son, Megat Iskandar Shah (r. 1414–1424), the kingdom continued to prosper. The period saw the diversification of economic sources of the kingdom with the discovery of two tin mining areas in the northern part of the city, sago palms in the orchards and nipah palms lining in the estuaries and beaches. To improve the defence mechanism of the  city from potential aggressors, Megat Iskandar Shah ordered the construction of a wall surrounding the city with four guarded entrances. A fenced fortress was also built in the town centre where the state's treasury and supply were stored. The growth of Malacca coincided with the rising power of Ayuthaya in the north. The growing ambitions of the kingdom against its neighbours and Malay Peninsula had alarmed the ruler of Malacca. In a preemptive measure, the king headed a royal visit to China in 1418 to raise his concerns about the threat. Yongle responded in October 1419 by sending his  envoy to warn the Siamese ruler. Relationship between the China and Malacca were further strengthened by several envoys to China, led by the Malaccan princes in the years 1420, 1421 and 1423. Due to this, it can be said that Malacca was economically and diplomatically fortified. Between 1424 and 1433, two more royal visits to China were made during the reign of the third ruler, Raja Tengah (r. 1424–1444). During Raja Tengah's rule, it was said that an ulama called Saiyid Abdul Aziz came to Malacca to spread the teaching of Islam. The king together with his royal family , senior officials and the subjects of Malacca listened to his teachings. Shortly after, Raja Tengah adopted the Muslim name, Muhammad Shah and the title "Sultan" on the advice of the ulama. He introduced the Islamisation in his administration – customs, royal protocols, bureaucracy and commerce were made to conform to the principles of Islam. As Malacca became increasingly important as an international trading centre, the equitable regulation of trade was the key to continued prosperity – and the "Undang-Undang Laut Melaka" ('Maritime Laws of Malacca'), promulgated during the reign of Sultan Muhammad Shah, was an important facet of this. So too  was the appointment of four "Shahbandars" for the different communities of the port. This accommodated foreign traders, who were also assigned their own enclaves in the city. In 1430s, China had reversed its policy of maritime expansion. However, by then Malacca was strong enough militarily to defend itself. In spite of these developments, China maintained a continuous show of friendship, suggesting that it placed Malacca in high regard. In fact, although it was China's practice to consider most foreign countries as vassal states, including Italy and Portugal, its relations with Malacca were characterised by mutual respect and friendship, such  as that between two sovereign countries. In 1444, Muhammad Shah died after reigning for twenty years and left behind two sons; Raja Kasim, the son of Tun Wati who in turn a daughter of a wealthy Indian merchant, and Raja Ibrahim, the son of the Princess of Rokan. He was succeeded by his younger son, Raja Ibrahim, who reigned as Sultan Abu Syahid Shah (r. 1444–1446). Abu Syahid was a weak ruler and his administration was largely controlled by Raja Rokan, a cousin of his mother who stayed in the court of Malacca during his reign. The situation prompted the  court officials to plan the assassination of Raja Rokan and to install Abu Syahid's older brother Raja Kasim to the throne. Both the Sultan and Raja Rokan were eventually killed in the attack in 1446. Raja Kasim was then appointed as the fifth ruler of Malacca and reign as Sultan Muzaffar Shah (r. 1446–1459). A looming threat from the Siamese kingdom of Ayuthaya became a reality when it launched a land invasion of Malacca in 1446. Tun Perak, the chief of Klang brought his men to help Malacca in the battle against the Siamese of which Malacca emerged victorious . His strong leadership qualities gained the attention of the Sultan, whose desire to see Malacca prosper made him appointing Tun Perak as the "Bendahara". In 1456, during the reign of King Trailokanat, the Siamese launched another attack, this time by sea. When the news about the attack reached Malacca, naval forces were immediately rallied and a defensive line was made near Batu Pahat. The forces were commanded by Tun Perak and assisted by Tun Hamzah, a warrior by the nickname Datuk Bongkok. The two sides were ultimately clashed in a fierce naval battle. Nevertheless, the more superior Malaccan navy succeeded  in driving off the Siamese, pursuing them to Singapura and forcing them to return home. Malacca's victory in this battle gave it new confidence to devise strategies to extend its influence throughout the region. The defeat of Siam brought political stability to Malacca and enhanced its reputation in South East Asia. Golden era. Malacca reached its height of glory at the beginning the middle of the 15th century. Its territory extended from modern-day Southern Thailand in the north to most of eastern coast of Sumatra in the south after wrestling it from Majapahit and Ayuthaya sphere of influence . The kingdom conveniently controls the global trade vital choke point; the narrow strait that today bears its name, Straits of Malacca. Its port city had become the centre of regional and international trade, attracting regional traders as well as traders from other Eastern civilisations such as the Chinese Empire and the Ryukyu and Western civilisations such as Persian, Gujarat and Arabs. The reign of Muzaffar Shah's son, Sultan Mansur Shah (r.1459–1477) witnessed the major expansion of the sultanate to reach its greatest extent of influence. Among the earliest territory ceded to the sultanate was Pahang, with its capital, Inderapura  – a massive unexplored land with a large river and abundant source of gold which was ruled by Maharaja Dewa Sura, a relative of the King of Ligor. The Sultan dispatched a fleet of two hundred ships, led by Tun Perak and 19 Malaccan hulubalangs' ('commanders'). On reaching Pahang, a battle broke out in which the Pahangites were decisively defeated and its entire royal court were captured. The Malaccan fleet returned home with Dewa Sura and his daughter, Wanang Seri who were handed over to Sultan Mansur Shah. The Sultan appointed Tun Hamzah to rule Pahang. A policy of rapprochement with  Ligor was later initiated by Mansur Shah to ensure steady supplies of rice. The military prowess of the sultanate was further strengthened by the nine elite knights of the kingdom. They were Hang Tuah, Hang Jebat, Hang Kasturi, Hang Lekir, Hang Lekiu, Hang Ali, Hang Iskandar, Hang Hasan and Hang Husain. Hang Tuah, the most intelligent among them is able to speak fluently 12 languages including Mandarin, Arabic, Javanese, Persian, and Japanese. He is skillful with weaponries such as the sword, keris, long keris, bow, cross bow and spear. He was the leader among them and was conferred the office  of "laksamana" ('admiral') by the Sultan. On his royal visit to Majapahit, Mansur Shah was also accompanied by these warriors. At that time, Majapahit was already at a declining state and found itself unable to overcome on the rising power of the Malay sultanate. After a display of Malaccan military prowess in his court, the king of Majapahit, afraid of losing more territories, had agreed to marry off his daughter, Raden Galuh Cendera Kirana to Sultan Mansur Shah and relinquished control over Indragiri, Jambi, Tungkal and Siantan to Malacca. The friendly relations between China and Malacca escalated during the reign  of Sultan Mansur Shah. The Sultan sent an envoy headed by Tun Perpatih Putih to China, carrying a diplomatic letter from the Sultan to the Emperor. According to the "Malay Annals", Tun Perpatih succeeded in impressing the Emperor of China with the fame and grandeur of Sultan Mansur Shah that the Emperor decreed that his daughter, Hang Li Po, should marry the Sultan. The Malay Annals further asserts that a senior minister of state and five hundred ladies in waiting accompanied the "princess" to Malacca. The Sultan built a palace for his new consort on a hill known ever afterwards  as Bukit Cina ("Chinese Hill"). As trade flourished and Malacca became more prosperous, Mansur Shah ordered the construction of a large and beautiful palace at the foot of Malacca Hill. The royal palace reflected the wealth, prosperity and power of Malacca and embodied the excellence and distinct characteristics of Malay architecture. The brief conflict between Malacca and Đại Việt during the reign of Lê Thánh Tông (r. 1460 – 1497), began shortly after the 1471 Vietnamese invasion of Champa, then already a Muslim kingdom. The Chinese government, without knowing about the event, sent a censor Ch'en Chun to Champa in 1474  to install the Champa King, but he discovered Vietnamese soldiers had taken over Champa and were blocking his entry. He proceeded to Malacca instead and its ruler sent back tribute to China. In 1469, Malaccan envoys on their return from China was attacked by the Vietnamese who castrated the young and enslaved them. In view of Lê Dynasty's position as a protectorate to China, Malacca abstained from any act of retaliation. Instead, Malacca sent envoys to China in 1481 to report on the Vietnamese aggression and their invasion plan against Malacca, as well as to confront the Vietnamese envoys  who happened to be present in the Ming court. However, the Chinese informed that since the incident was years old, they could do nothing about it, and the Emperor sent a letter to the Vietnamese ruler reproaching him for the incident. The Chinese Emperor also granted permission for Malacca to retaliate with violent force should the Vietnamese attack, an event that never happened again after that. The Vietnamese with full force battalion were heavily defeated by outnumbered Malacca battalion during an invasion of Lan Sang as reported in a Chinese account. The expansionist policy of Mansur Shah was maintained throughout  his reign when he later added Kampar and Siak to his realm. He also turned a number of states in the archipelago into his imperial dependencies. The ruler of such states would come to Malacca after their coronation to obtain the blessing of the Sultan of Malacca. Rulers who have been overthrown also came to Malacca requesting the Sultan's aid in reclaiming their throne. One such examples was Sultan Zainal Abidin of Pasai who was toppled by his own relatives. He fled to Malacca and pleaded with Sultan Mansur Shah to reinstall him as a ruler. Malacca armed forces  were immediately sent to Pasai and defeated the usurpers. Although Pasai never came under the control Malacca afterwards, the event greatly demonstrated the importance of Malacca and the mutual support it had established among leaders and states in the region. While Malacca was at the peak of its splendour, Sultan Mansur Shah died in 1477. The prosperous era of Malacca continued under the rule of his son, Sultan Alauddin Riayat Shah (r. 1477–1488) and more foreign rulers within the region began paying homage to the Sultan of Malacca. Among them were a ruler from the Moluccas Islands who were defeated  by his enemies, a ruler of Rokan and a ruler named Tuan Telanai from Terengganu. Alauddin Riayat Shah was a ruler who placed a great importance in maintaining peace and order during his reign. He was succeeded by his son, Sultan Mahmud Shah (r. 1488–1511) who was a teenage boy upon his accession. Hence Malacca was administered by Bendahara Tun Perak with the help of other senior officials. The legendary Princess of Gunung Ledang was said to have lived during the reign of Mahmud Shah and once wooed by the sultan himself. The town of Malacca continues to flourish and  prosper with an influx of foreign traders after the appointment of Tun Mutahir as Bendahara. This was due to his efficient and wise administration and his ability to attract more foreign traders to Malacca. By about 1500, Malacca was at the height of its power and glory. Its city of Malacca was the capital of a great Malay empire, the chief centre of trade in Indian cloth, Chinese porcelain and silk and Malay spices, and the headquarters of Muslim activity in the Malay Archipelago. Malacca was still looking to expand its territory as late as 1506, when it conquered Kelantan . Portuguese invasion. By the 15th century, Europe had developed an insatiable appetite for spices. At that time, spice trade was virtually monopolised by the Venetian merchants via a convoluted trade route through Arabia and India, which in turn linked to its source in Spice Islands via Malacca. Upon becoming king in 1481, John II of Portugal determined to break this chain and control the lucrative spice trade directly from its source. This led to the expansion of Portuguese sea exploration, pioneered by Vasco da Gama, into the east coasts of India that had resulted in the establishment of Portuguese stronghold  in Calicut. Years later, during the reign of Manuel I, a fidalgo named Diogo Lopes de Sequeira was assigned to analyse the trade potentials in Madagascar and Malacca. He arrived in Malacca on 1 August 1509 carrying with him a letter from the King. His mission was to establish trade with Malacca. The Tamil Muslims who were now powerful in the Malaccan court and friendly with Tun Mutahir, the Bendahara, were hostile towards the Christian Portuguese. The Gujarati merchants who were also Muslims and had known the Portuguese in India, preached a holy war against "the infidels". Unfortunately, because of  the dissension between Mahmud Shah and Tun Mutahir, a plot was hatched to kill de Sequeira, imprison his men and capture the Portuguese fleet anchored off the Malacca River. The plot leaked out and de Sequeira managed to escape from Malacca in his ship, leaving behind several of his men as captives. In April 1511 Afonso de Albuquerque, who was the Portuguese expedition leader together with his armada, arrived in Malacca to sever its Islamic and Venetian trade. His intention was described in his own words when he arrived to Malacca: The Portuguese launch their first attack on 25 July  1511, but this was met with failure. Albuquerque then launched another attack on 15 August 1511, which proved successful as Malacca was captured on that day. The Portuguese constructed a fortress called A Famosa using rocks and stones taken from Muslim graves, mosques, and other buildings. Several churches and convents, a bishop's palace, and administrative buildings such as the governor's palace were built. The Portuguese imposed higher taxes on Chinese traders and restricted their ownership of land. The news of the city's capture reached the Ming Dynasty of China; the Chinese were also displeased about the kidnapping  of many Chinese children by the Portuguese in Tuen Mun. In retaliation for Portugal's activity in Malacca, several Portuguese were later killed by the Chinese in the battles of Tunmen and Xicaowan in China. Post-1511. Portuguese Malacca. Following the 1511 conquest, the great Malay city port of Malacca passed into Portuguese hands and for the next 130 years remained under Portuguese governance despite incessant attempts by the former rulers of Malacca and other regional powers to dislodge the Europeans. Around the foot hill on which the Sultan's "Istana" once stood, the Portuguese built the stone fort known as  A Famosa, completed in 1512. Malay graves, the mosque and other buildings were dismantled to obtain the stone from which, together with laterite and brick, the fort was built. Despite numerous attacks, the fort was only breached once, when the Dutch and Johor defeated the Portuguese in 1641. It soon became clear that Portuguese control of Malacca did not mean they now controlled Asian trade that centred on it. Their rule in Malacca was marred with difficulties. They could not become self-sufficient and remained highly dependent on Asian suppliers, as had their Malay predecessors. They were short of both  funds and manpower and the administration was hampered by organizational confusion and command overlap, corruption and inefficiency. Competition from other regional ports such as Johor which was founded by the exiled Sultan of Malacca, saw Asian traders bypass Malacca and the city began to decline as a trading port. Rather than achieving their ambition of dominating it, the Portuguese had fundamentally disrupted the organisation of the Asian trade network. The previously centralised port of exchange that policed the Straits of Malacca to maintain its safety for commercial traffic, was replaced with scattered trading network over a number of ports rivalling  each other in the Straits. The efforts to propagate Christianity which was also one of the principal aims of Portuguese imperialism did not, however, meet with much success, primarily because Islam was already strongly entrenched among the local population. Chinese retaliation. The Portuguese conquest of Malacca enraged the Zhengde Emperor of China when he received the envoys from the exiled Sultan Mahmud. The furious Chinese emperor responded with brutal force, culminating the period of three decades of prosecution of Portuguese in China. Among the earliest victims were the Portuguese envoys led by Tomé Pires in 1516 that were greeted with  great hostility and suspicion. The Chinese confiscated all of the Portuguese property and goods in the Pires embassy's possession. Many of the envoys were imprisoned, tortured and executed. Pires himself was said among those who died in the Chinese dungeons. Two successive Portuguese fleets bound for China in 1521 and 1522 were attacked and defeated in the first and second Battle of Tamao. In response to Portuguese piracy and the illegal installation of bases in Fujian at Wuyu island and Yue harbour at Zhangzhou, Shuangyu island in Zhejiang, and Nan'ao island in Guangdong, the Imperial Chinese Right Deputy Commander  Zhu Wan exterminated all the pirates and razed the Shuangyu Portuguese base, using force to prohibit trading with foreigners by sea. Moreover, Chinese traders boycotted Malacca after it fell under Portuguese control, with some Chinese in Java even assisting in Muslim attempts to invade the city. However, with gradual improvement of relations and aid given against the Japanese Wokou pirates along China's shores, by 1557 Ming China finally agreed to allow the Portuguese to settle at Macau in a new Portuguese trade colony. The Malay Sultanate of Johor also improved relations with the Portuguese. Successors of Malacca. The exiled  Sultan Mahmud Shah made several attempts to retake the capital but his efforts were fruitless. The Portuguese retaliated and forced the Sultan to flee to Pahang. Later, the Sultan sailed to Bintan and established his capital there. From the new base, the Sultan rallied the disarrayed Malay forces and organised several attacks and blockades against the Portuguese's position. Frequent raids on Malacca caused the Portuguese severe hardship. The raids helped convince the Portuguese that the exiled Sultan's forces must be silenced once for all. A number of attempts were made to suppress the Malay forces, but it was n't until 1526 that the Portuguese finally razed Bintan to the ground. The Sultan then retreated to Kampar in Sumatra where he died two years later. He left behind two sons named Muzaffar Shah and Alauddin Riayat Shah II. Muzaffar Shah was invited by the people in the north of the peninsula to become their ruler, establishing the Sultanate of Perak. Meanwhile, Mahmud Shah's other son, Alauddin succeeded his father and established the Sultanate of Johor. Malacca was later conquered by the Dutch in a joint military campaign in January 1641. The Portuguese fortress, however, did not fall to  the force of Dutch or Johorean arms as much as to famine and disease that had brutally decimated the surviving population. As a result of mutual agreement between the Dutch and Johor earlier in 1606, Malacca was handed over to the Dutch. Administration. Malacca had a well-defined government with a set of laws. On top of the sultanate's hierarchy sat the Sultan and he was an absolute monarch. The earlier Srivijayan concept of kingship that the king's authority to rule was based on legitimate lineage still prevailed, and with the coming of Islam, it was reintroduced with  the name "daulat" (sovereignty). Malacca's legal codes identified four main state officials appointed by the Sultan. Below the Sultan was a "Bendahara", a position similar to that of a vizier, who acted as an advisor to the Sultan. It was the highest-ranking office that could be held by any common people in Malacca. Bendahara was also responsible for ensuring cordial relations with foreign states. Malacca's fifth "Bendahara", Tun Perak, excelled in both war and diplomacy. Twice during the reign of Sultan Muzaffar Shah, Tun Perak successfully led Malaccan armed forces in repelling Siamese attacks on Malacca. When  Sultan Mansur Shah ascended the throne, acting on Tun Perak's advice, he agreed to dispatch a peace envoy to Siam. Tun Perak also advised the Sultan to marry the daughter of the King of Majapahit, Malacca's traditional enemy. Next to "Bendahara" was a state treasurer, called "Penghulu bendahari". Later comes the "Temenggung" which more or less a chief of public police and state security. After Temenggung, a "Laksamana"'s authority is paramount. He was the head of the navy and also chief emissary of the Sultan. He ensured that the Malacca Straits was safe and enforced the "Undang -Undang Laut Melaka" ('Maritime Laws of Malacca'). Malacca's most prominent "Laksamana" was the legendary Hang Tuah. At the bottom of this nobility structure is the four "Shahbandars" ('harbour masters') for the different communities in the port – one focused exclusively on handling the affairs of the Gujarati traders; another was responsible for traders from Southern India, Bengal, Burma and Pasai; a third for traders from Maritime Southeast Asia; and fourth for traders from Annam, China and the Ryukyu Islands. As the Gujaratis were the most dominant, numbering up to 1000 traders, their "Shahbandar" was regarded as the most important of  the four. Lesser titled state officials were also appointed. They were known as the "Orang Besar". In addition, a governor called the "Mandulika" oversaw the administration of appanages and territories annexed by conquest. The sultanate was governed with several set of laws. The formal legal text of traditional Malacca consisted of the "Undang-Undang Melaka" (Laws of Malacca), variously called the "Hukum Kanun Melaka" and "Risalat Hukum Kanun", and the "Undang-Undang Laut Melaka" (the Maritime Laws of Malacca'). The laws as written in the legal digests went through an evolutionary process. The legal rules that eventually evolved were shaped  by three main influences, namely the early non-indigenous Hindu/Buddhist tradition, Islam and the indigenous "adat". Islam and Malay culture. The conversion of the first ruler of Malacca, Parameswara, to Islam was unclear so far with no evidence as to whether he had actually converted. The 16th-century Portuguese writer Tomé Pires explicitly mentioned that Parameswara was succeeded by his son, Megat Iskandar Shah, and that only the latter converted to Islam at the age 72. On the other hand, the "Malay Annals" noted that it was during the reign of the third ruler Muhammad Shah (r. 1424–44), that  the ruling class and the subjects began accepting Islam. While there are differing views on when the Islamization of Malacca actually took place, it is generally agreed that Islam was firmly established during the reign of Muzaffar Shah (r. 1445–59). Islamisation in the region surrounding Malacca gradually intensified between the 15th and 16th centuries through study centres in Upeh, the district on the north bank of the Malacca River. Islam spread from Malacca to Jambi, Kampar, Bengkalis, Siak, Aru and the Karimun Islands in Sumatra, throughout much of the Malay peninsula, Java and even Philippines. The "Malay Annals" even reveals  that the courts of Malacca and Pasai posed theological questions and problems to one another. Of the so-called Wali Sanga ('nine saints') responsible in spreading Islam on Java, at least two, Sunan Bonang and Sunan Kalijaga, are said to have studied in Malacca. The Portuguese apothecary and chronicler at the time of Malacca's fall, Tome Pires, in his "Suma Oriental" mentions that the rulers of Kampar and Indragiri on the east coast of Sumatra converted to Islam as a result of Sultan Muzaffar Shah's influence and went on to study the religion in Malacca. The "Malay Annals  also mentions a number of scholars who served at the Malacca royal court as teachers and counselors to the various Sultans. Maulana Abu Bakar served in the court of Sultan Mansur Shah and introduced the Kitab Darul Manzum", a theological text translated from the work of an Arab scholar in Mecca. A scholar by the name of Maulana Kadi Sardar Johan served as a religious teacher to both Sultan Mahmud Shah and his son. In addition to "Kitab Darul Manzum", the "Malay Annals" also mentions the "Kitab al-luma' fi tasawwuf" ('Book of Flashes'), a tenth-century treatise on Sufism  by Abu Nasr al-Sarraj. Certain elaborate ceremonies that blend Islamic traditions with local culture were also began taking shape during Malaccan era. One of the example was recorded during the reign of Muhammad Shah. A special ceremony was held that marked the celebration of the 27th night of "Ramadan", the "Laylat al-Qadr". It began with a daytime procession, led by the "Temenggung" on elephant-back, conveying the Sultan's prayer mat to the mosque for "Tarawih" performed after the mandatory night prayers. On the following day the Sultan's turban would be carried in procession to the mosque . Similar ceremonies accompanied the grand celebrations of both "Hari Raya Aidilfitri" and "Hari Raya Aidiladha". Apparently Malaccan Malay society had become so infused with the Islamic worldview that on the eve of the fall of Malacca, warriors at the court requested copies of two Islamic heroic epics, the" Hikayat Amir Hamzah" and the "Hikayat Muhammad Hanafiah", to inspire them in battle the next day. These two epics, still read today, tell of heroes fighting in the defence of Islam. The rise of Malacca as a centre of Islam had a number of crucial implications. Firstly, Islam transformed the notion of  kingship so that the Sultan was no longer viewed as divine, but as God's "Khalifah" (vice-gerent on earth). Secondly, Islam was an important factor in enabling Malacca to foster good relations with other Islamic polities, including the Ottoman Empire, thereby attracting Muslim traders to Malacca. Thirdly, Islam brought many great transformation into Malaccan society and culture, and ultimately it became a definitive marker of a Malay identity. This identity was in turn enriched further through the standards set by Malacca in some important aspects of traditional Malay culture, notably in literature, architecture, culinary traditions, traditional dress, performing arts , martial arts, and royal court traditions. Over time, this common Malay cultural idiom came to characterise much of the Maritime Southeast Asia through the Malayisation. Trade. Malacca developed from a small settlement to a cosmopolitan entrepot within the span of a century. This rapid progression was attributable to several factors, key among which were its strategic location along one of the World's most important shipping lanes, Malacca Straits and the increasing demand for commodities from both the East and the West. Ships from the east bearing goods from China, Ryukyu, Java and Maluku Islands would sail in by the  northeast monsoon from December to January, while ships leaving for ports along Indian coastline, the Red Sea and East Africa would sail with the southwest monsoon. There were other ports along the Strait of Malacca such as Kedah in the Peninsula and Jambi and Palembang in Sumatra, yet none of them came close to challenging Malacca's success as a centre of international trade. Malacca had an edge over these ports because its Rulers created an environment that was safe and conducive for business. Chinese records of the mid-15th century stated that Malacca flourished as a centre for trade on  account of its effective security measures. It also had a well-equipped and well-managed port. Among the facilities provided for merchants were warehouses, where they could safely house their goods as they awaited favourable trade winds, as well as elephants for transporting goods to the warehouses. Malacca's management of its ethnically diverse merchant population – it is said that 84 different languages were spoken in Malacca during its heyday- is particularly telling. To administer the cosmopolitan marketplace, the traders were grouped according to region and placed under one of four "shahbandars". Malacca had few domestic products with which to  trade. It produced small amounts of tin and gold as well as dried fish, yet even the salt for preserving the fish had to be sourced from elsewhere in the region. Basic goods, including vegetables, cattle and fish, were supplied by Malacca's trading partners. Rice, mainly for local consumption, was imported. Much of the mercantile activity in Malacca, therefore, relied on the flow of goods from other parts of the region. Among Malacca's most crucial functions was its role as both a collection centre for cloves, nutmeg and mace from the Spice Islands and a redistribution centre for  cotton textiles from ports in Gujarat, the Coromandel Coast, Malabar Coast and Bengal. Other goods traded in Malacca included porcelain, silk and iron from China and natural products of the Malay archipelago, such as camphor, sandalwood, spices, fish, fish roe and seaweed. From the coastal regions on both sides of Malacca Straits came forest products; rattan, resin, roots and wax, and some gold and tin. These goods were then shipped to ports west of Malacca especially Gujarat. Tin ingots were a trading currency unique to Malacca. Cast in the shape of a peck, each block weighs just over one pound . Ten blocks made up one unit called a 'small bundle', and 40 blocks made up one 'large bundle'. Gold and Silver coins were also issued by Malacca as trading currency within the kingdom. Legacy. Malacca sultanate heralded the golden age of "Alam Melayu" and became an important port in the far east during the 16th century. It became so rich that the Portuguese writer and trader Tome Pires said ""Whoever is lord of Malacca shall have his hands on the throat of Venice."". Within a span of a century, the Malay empire left a lasting and important legacy, especially within  Malay culture and the History of Malaysia. Malacca was the first Malay Muslim state that achieved the status of a regional maritime power. Despite the existence of earlier Muslim kingdoms such as Kedah, Samudra Pasai and Aru, which also possessed well-established ports, none of them came close in challenging Malacca's success in expanding its territory and influence in the region. Malacca also contributed in the evolution of a common Malay culture based on Islam by incorporating native and Hindu-Buddhist ideas and layered them extensively with Islamic ideas and values. Through its traditions, laws, and royal rituals and  customs, the Malaccan court set the example for later Muslim sultanates in the region to follow. Next to its role on promoting Islamic faith, Malacca is important especially for the modern nation of Malaysia as it was the first centralised polity that consolidated the entire Malay peninsula-now an important part of Malaysia- under its rule. This is contrary with the achievements of older kingdoms of the Malay Peninsula such as Kedah and Langkasuka that only exerted their influence over a significant northern portion of the peninsula. Because of these roles, Malacca is considered by many to be the spiritual  birthplace of Malaysia. After the Sultanate of Malacca empire fell to Portugal in 1511, Sultan Mahmud Syah I retreated to Kampar, Sumatra, he left behind two princes named Sultan Alauddin Riayat Shah II and Sultan Muzaffar Shah. The two princes went on to establish the Sultanate of Perak and Sultanate of Johor. Malacca sultanate also emerged as the primary base in continuing the historic struggles of its predecessors, Singapura and Srivijaya, against their Java-based nemeses. By the mid 15th century, Majapahit found itself unable to control the rising power of Malacca that began to gain effective control of Malacca  straits and expands its influence to Sumatra. As a major entrepot, Malacca attracted Muslim traders from various part of the world and became a centre of Islam, disseminating the religion throughout the Maritime Southeast Asia. The expansion of Islam into the interiors of Java in the 15th century led to the gradual decline of Majapahit, before it finally succumbed to the emerging local Muslim forces in the early 16th century. At the same time, the literary tradition of Malacca developed the Classical Malay that eventually became the "lingua franca" of the region. The advent of Islam coupled with flourishing trade  that used Malay as medium of communication, culminated the domination of Malacca and other succeeding Malay-Muslim sultanates in the Maritime Southeast Asia. As noted by certain scholars, the historic Malay-Javanese rivalry in the region, persists until modern times, and continues to shape the diplomatic relations between the Malay-centric Malaysia and the Java-based Indonesia.