The origin of the songkok can be traced to the fez, which was adopted by the Ottomans in 1826 and subsequently spread to South Asia and to the Malay Archipelago (now called Indonesia, Malaysia and Brunei). The songkok used to be worn during the Ottoman Empire and in some parts of Africa.