Basilica of the Visitation was built between 1715 and 1723. The basilica was given the status of a basilica minor by Pope Pius XI in 1936. The present basilica is located on a hill, where in the twelfth-century, stood a wooden figure of Mary, the Mother of God. According to a chronicle from 1218, the blind Jan from Raszewo regained his sight there. After the event, many pilgrims began visiting the area. Shortly afterwards, an altar, together with candlesticks and a baptismal font, was placed by the statue under the tree. In 1263, a wooden church was built on the hill.
In 1512, Ludwik von Panwitz raised a greater church, constructed out of brick. However, the church was destroyed during the Thirty Years' War. Between 1695 and 1711, a new church was built, but quickly began to crumble and was deconstructed in 1714. Between 1715 and 1723, another church was built by Count Franciszek Antony von Goetzen, which stands to the present day.
References:Visby Cathedral (also known as St. Mary’s Church) is the only survived medieval church in Visby. It was originally built for German merchants and inaugurated in 1225. Around the year 1350 the church was enlarged and converted into a basilica. The two-storey magazine was also added then above the nave as a warehouse for merchants.
Following the Reformation, the church was transformed into a parish church for the town of Visby. All other churches were abandoned. Shortly after the Reformation, in 1572, Gotland was made into its own Diocese, and the church designated its cathedral.
There is not much left of the original interior. The font is made of local red marble in the 13th century. The pulpit was made in Lübeck in 1684. There are 400 graves under the church floor.