The history of Malaysian police traces their existence since the law of Malacca Sultanate in the 1400, then subsequently developed through the history of the nation through administration by the Portuguese, the Dutch, modernisation by the British beginning in the early 1800s, and into the era of Malaysian independence.
The police system started since the days of Malay Sultanate of Malacca. Currently, the role, task and police responsibility are combined with military duties. The Sultan has the absolute authorities. He is also the Judge, Religious Chief and High Command of Military and powerful legislate of the law. Most important rules in the time was Undang-Undang Melaka.
The Prime Minister or Bendahara was the second authorities after the King. He is the Sultan's Advisor, Chief Administrator and may act as Warlord. Tun Perak, titled Bendahara Paduka Raja have led Malaccan soldiers for battle.
Through quotation of Malay Annals, page 142–143:
Then worship Seri Maharaja, "Be, sire." Then Sultan speech, "We heard the peoples killed by the someones, above the hill, under the hill, the end of the bridge, if that the peoples, did you kill them?" Then worship Seri Maharaja, "Not I know, sire." Then Sultan speech, "Your controls is vain, three deads is not leak. Now, we listen the thieves too terrors in this country." Then Sultan even order to call Hang Isap, it even come, the box even brought in its. Then Sultan Alauddin speech to Hang Isap and Hang Siak, "What's your view yesterday?" Then Hang Isap and Hang Siak even talk will all about affairs yesterday, all is said its.......
"Since then Seri Maharaja control is flinty. If converge with people to go, killed them, not more caught. One day, during the Seri Maharaja guarding, converge with a thieves. Then were slaves by Seri Maharaja with squirell machete, cutting in his shoulder......."
From an above, Temenggung was call the safeguarding security and peace statewide, including palace grounds. His tasks were to arrest the criminals, build prisons and implement sentences. Nowadays, the Temenggung's authority is similar to current Inspector-General of Police.
Villager chiefs shelf is representative Sultan, have rather respective control team. This team main task are tax collections, law enforcement and care his safeguarding the village.
This traditional police systems were changed when Malacca was conquered by the Portuguese on 10 August 1511, led by Afonso de Albuquerque.
In the year 1511, Malacca became a cosmopolitan society. The Portuguese ruled Malacca by using "Capitan" system.