Bergen lost its status as the capital of Norway to Oslo due to the union with Denmark, fires and epidemics, and the shift of power to a more central position.