During the (Malacca Sultanate) (1400–1511), the position that resembles modern chief of police is the "Temenggong" ('Chief of Public Security'). After the fall of Malacca and up to the 17th century, Malaya was under several western powers including Portugal, the Netherlands and Britain, and the task of securing public safety in Malaya fell to these nations' militaries.