Sofia is the capital and largest city of the Republic of Bulgaria, with a population of 1,270,010 (making it the 14th largest city in the European Union), and some 1,386,702 in the metropolitan area, the Capital Municipality. It is located in western Bulgaria, at the foot of the mountain massif Vitosha, and is the administrative, cultural, economic, and educational centre of the country.
One of the oldest capital cities in Europe, the history of Sofia dates back to the 7th century BC, when Thracians established a settlement there. Sofia has had several names in the different periods of its existence, and remnants of the city's millenary history can still be seen today alongside modern landmarks.
Sofia's development as a significant settlement owes much to its central position in the Balkans. It is situated in western Bulgaria, at the northern foot of the Vitosha mountain, in the Sofia Valley that is surrounded by mountains on all sides. The valley is the largest one in the country with territory of 1,186 square kilometres (457.9 sq mi) and average altitude of 550 metres (1,804 ft). Three mountain passes lead to the city, which have been key roads since antiquity, connecting the Adriatic Sea and Central Europe with the Black and Aegean Seas.
A number of low rivers cross the city, including the Vladaiska and the Perlovska. The Iskar River in its upper course flows near eastern Sofia. The city is known for its numerous mineral and thermal springs. Artificial and dam lakes were built in the last century.
It is located 150 km (90 miles) northwest of Plovdiv, Bulgaria's second largest city, 390 km west of Burgas, 472 km (294 miles) west of Varna, Bulgaria's major port-cities on the Bulgarian Black Sea Coast. The city is situted at less than 200 kilometres (124 mi) from the borders with three countries: 55 kilometres (34 mi) from Kalotina on the Serbian border, 113 kilometres (70 mi) from Gyueshevo on the frontier with the Republic of Macedonia and 183 kilometres (114 mi) from the Greek border at Kulata.