The Church of St. Anne is one of the leading examples of Polish Baroque architecture. The church was first mentioned in 1381 in the deed of donation of Sulisław I Nawoja of Grodziec. In 1407 the church was completely destroyed during a fire, but it was rebuilt the same year in the Gothic style by King Władysław II Jagiełło. The king also attached the Church formally to the Jagiellonian University by giving it the right to nominate the parish priest. In 1428 the choir was reconstructed and enlarged. By a charter dated October 27, 1535 St. Anne's was raised to the rank of a collegiate church.
In 1689 the Gothic edifice was demolished as it proved too small for the growing cult of Saint John Cantius, the patron saint of the Jagiellonian University who's laid to rest there. In 1689-1705 the new Baroque church was erected, modelled on Sant'Andrea della Valle in Rome. The architect was a Polonized Dutchman Tylman van Gameren, a chief architect at the court of John III Sobieski. The interior stucco decoration is the work of Baldassare Fontana, and the polychromy assisted by painters and brothers Carlo and Innocente Monti and Karl Dankwart of Nysa. The painting of St. Anne in the high altar is the work of Jerzy Siemiginowski-Eleuter, court painter of King John III Sobieski. The 18th-century paintings in the stalls showing the life of Saint Anne are by Szymon Czechowicz. In the transept there is an altar of the adoration of the cross to the left, and the tomb of John Cantius to the right.
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.