 Gotland was again taken into Sweden's possession in 1645, by the Treaty of Brömsebro, after 300 years of Danish rule.The city developed slowly as things were left as they were.In the mid 18th century, after a plague had reduced Visby's population, some attempts were made by Swedish government officials to improve living standards, but little was accomplished.