Founded as a city by [Olav Kyrre]? in 1070? AD and considered to be Norway's capital until 1299.
City of Bergen official website, http://www.bergen.kommune.no/