At the beginning of the 19th century, Belgrade was predominantly inhabited by a Muslim population. Traces of Ottoman rule and architecture—such as mosques and bazaars, were to remain a prominent part of Belgrade's townscape into the 19th century; several decades, even, after Serbia was granted autonomy from the Ottoman Empire.