Trondheim is a city and municipality in Trøndelag county, Norway. It has a population of 193,501, and is the third-most populous municipality in Norway, although the fourth largest urban area. It is the third largest city in the country, with a population of 169,972 inhabitants within the city borders. Trondheim lies on the south shore of Trondheim Fjord at the mouth of the River Nidelva. The city is dominated by the Norwegian University of Science and Technology, the Foundation for Scientific and Industrial Research, St. Olavs University Hospital and other technology-oriented institutions.
The settlement was founded in 997 as a trading post, and it served as the capital of Norway during the Viking Age until 1217. From 1152 to 1537, the city was the seat of the Catholic Archdiocese of Nidaros; since then, it has remained the seat of the Lutheran Diocese of Nidaros and the Nidaros Cathedral. It was incorporated in 1838. The current municipality dates from 1964, when Trondheim merged with Byneset, Leinstrand, Strinda and Tiller.
The city functions as the seat of the County Mayor of Trøndelag county, but not as the administrative centre, which is Steinkjer.