The end of the Montenegrin-Ottoman War in 1878 resulted in the Congress of Berlin recognizing vast territories, including that of Podgorica, as part of the newly recognized Kingdom of Montenegro. At that time there were about 1,500 houses in Podgorica, with more than 8,000 people living there – of Orthodox, Roman Catholic, and Muslim faiths flourishing together.