 The earliest history of Visby is uncertain, but it is known to have been a centre of merchandise around 900 AD.It was inhabited as early as the Stone Age, probably because of the access to fresh water and a natural harbour.In the 12th century, Visby Cathedral, dedicated to Saint Mary, was constructed.