In 1521, 132 years after the Battle of Kosovo, the fortress, like most parts of the Serbian state, was conquered by the Turks and remained (with short periods of the Austrian and Serbian occupation), under the rule of the Ottoman Empire until the year 1867, when the Turks withdrew from Belgrade and Serbia. During the short period of Austrian rule (1718–1738), the fortress was largely rebuilt and modernized. It witnessed the Great Serbian Migration in the 17th century and two Serbian Uprisings in the 19th century, during the Turkish Period.