Sweden's conversion was slow and contested, and Uppsala is where the change of regime is legible. An archbishopric was established at the old settlement in 1164, and a century later the see was moved a few kilometres south to the present town, where a brick cathedral on the French model was begun. It is the largest church in Scandinavia and holds the shrine of Erik, the king venerated as Sweden's patron, along with the tombs of later monarchs.
The Reformation came as a royal measure under Gustav Vasa, but its final shape was settled at Uppsala. A national synod met in the cathedral in 1593, after a king had attempted to move Swedish worship back towards Rome, and resolved that the Church of Sweden would hold to the three ancient creeds and the Augsburg Confession, that the earlier liturgy was rejected, and famously that Sweden would now be of one mind. The decision made Lutheranism the settled religion of the kingdom and was treated afterwards as a founding document of the national church.
The university had been founded in 1477 and became the training ground for its clergy, as well as the home of Linnaeus and of Celsius. The Church of Sweden remained a state church until 2000, and it is administered from Uppsala under an archbishop; it ordained its first women priests in 1960 and has since authorised marriage services for same sex couples, decisions that have been debated across the wider Lutheran world.