It was within the 12th century that the Visby Cathedral and the city wall were constructed. In the year of 1361, Visby was taken under Danish control by Valdemar IV of Denmark. Danish rule would last for about 300 years.
During the years of 1391, 1394 and 1398 pirates (the Victual Brothers) plundered the city. In the same year of 1398, Teutonic Knights sailed to Visby, took control after destroying the city and evicted the Victual Brothers. In the year 1909, Ulrich von Jungingen (a grand master of the Teutonic Knights) sold the island to Queen Margaret of Norway, Denmark and Sweden to ensure peace with the Kalmar Union of Scandinavia. However in the ensuring years the city was home to pirates, endured a feud, and was burnt (except the cathedral). In 1645 Visby was once again taken and ruled by Sweden. For a few months in 1808 Gotland was taken over by Russians but it soon was returned back to Sweden peacefully.
A ferry from Oskarshamn in Småland and Nynäshamn (close to Stockholm) reaches Visby in about three hours. The only way to reach this island is by ferry or aeroplane. The Visby Airport is located 5km north of the city. Once in the city of Visby it is easy to travel locally on foot or by bicycle along the designated bike paths. In summer plenty rental bicycles are available, yet if you are staying in the city for an extended period of time, it is cheaper to buy a second hand bicycle than to rent a bicycle.
For more information, please view: http://whc.unesco.org