structural:expansion
Principality and Kingdom of Serbia

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.

During the First Serbian Uprising, Serbian revolutionaries held the city from 8 January 1807 until 1813, when it was retaken by the Ottomans. In 1807, Turks in Belgrade were massacred and forcefully converted to Christianity. The massacre was encouraged by Russia in order to cement divisions between the Serb rebels and the Porte. Around 6,000 Muslims and Jews were forcibly converted to Christianity. Most mosques were converted into churches. Muslims, Jews, Aromanians and Greeks weresubjected to forced labour, and Muslim women were widely made available to young Serb men, and some were taken into slavery. Milenko Stojković bought many of them, and established his harem for which he gained fame. In this circumstances Belgrade demographically transformed from Ottoman to Serb. After the Second Serbian Uprising in 1815, Serbia achieved some sort of sovereignty, which was formally recognised by the Porte in 1830.

The development of Belgrade architecture after 1815 can be divided into four periods. In the first phase, which lasted from 1815 to 1835, the dominant architectural style was still of a Balkan character, with substantial Ottoman influence. At the same time, an interest in joining the European mainstream allowed Central and Western European architecture to flourish. Between 1835 and 1850, the amount of neoclassicist and baroque buildings south of the Austrian border rose considerably, exemplified by St Michael's Cathedral (Serbian: Saborna crkva), completed in 1840. Between 1850 and 1875, new architecture was characterised by a turn towards the newly popular Romanticism, along with older European architectural styles. Typical of Central European cities in the last quarter of the 19th century, the fourth phase was characterised by an eclecticist style based on the Renaissance and Baroque periods.

In 1841, Prince Mihailo Obrenović moved the capital of the Principality of Serbia from Kragujevac to Belgrade. During his first reign (1815–1839), Prince Miloš Obrenović pursued expansion of the city's population through the addition of new settlements, aiming and succeeding to make Belgrade the centre of the Principality's administrative, military and cultural institutions. His project of creating a new market space (the Abadžijska čaršija), however, was less successful; trade continued to be conducted in the centuries-old Donja čaršija and Gornja čaršija. Still, new construction projects were typical for the Christian quarters as the older Muslim quarters declined; from Serbia's autonomy until 1863, the number of Belgrade quarters even decreased, mainly as a consequence of the gradual disappearance of the city's Muslim population. An Ottoman city map from 1863 counts only 9 Muslim quarters (mahalas). The names of only five such neighbourhoods are known today: Ali-pašina, Reis-efendijina, Jahja-pašina, Bajram-begova, and Laz Hadži-Mahmudova. Following the Čukur Fountain incident, Belgrade was bombed by the Ottomans.

On 18 April 1867, the Ottoman government ordered the Ottoman garrison, which had been since 1826 the last representation of Ottoman suzerainty in Serbia, withdrawn from Kalemegdan. The forlorn Porte's only stipulation was that the Ottoman flag continue to fly over the fortress alongside the Serbian one. Serbia's de facto independence dates from this event. In the following years, urban planner Emilijan Josimović had a significant influence on Belgrade. He conceptualised a regulation plan for the city in 1867, in which he proposed the replacement of the town's crooked streets with a grid plan. Of great importance also was the construction of independent Serbian political and cultural institutions, as well as the city's now-plentiful parks. Pointing to Josimović's work, Serbian scholars have noted an important break with Ottoman traditions. However, Istanbul—the capital city of the state to which Belgrade and Serbia de jure still belonged—underwent similar changes.

In May 1868, knez Mihailo was assassinated with his cousin Anka Konstantinović while riding in a carriage in his country residence.

With the Principality 's full independence in 1878 and its transformation into the Kingdom of Serbia in 1882, Belgrade once again became a key city in the Balkans, and developed rapidly. Nevertheless, conditions in Serbia remained those of an overwhelmingly agrarian country, even with the opening of a railway to Niš, Serbia's second city. In 1900, the capital had only 70,000 inhabitants (at the time Serbia numbered 2.5 million). Still, by 1905, the population had grown to more than 80,000 and, by the outbreak of World War I in 1914, it had surpassed the 100,000 citizens, disregarding Zemun, which still belonged to Austria-Hungary.

The first-ever projection of motion pictures in the Balkans and Central Europe was held in Belgrade in June 1896 by André Carr, a representative of the Lumière brothers. He shot the first motion pictures of Belgrade in the next year; however, they have not been preserved. The first permanent cinema was opened in 1909 in Belgrade.