Sweden state in the 18th and early 19th century just had no money to rebuild the city and it is preserved in it's medieval form.