The Mezquita was built from a visigothic basilica from the 5th century, reusing its materials, and is one of the few surviving Spanish rural mosques.
It is an oddly-shaped building, made of brick and stone in a trapezoid shape, probably because of the hilly terrain. The oration room has 5 naves, whose arches, like in the Mezquita in Cordoba, are perpendicular to Qibla. The central nave is wider than the 2 nearby, which are in turn wider than the 2 outer naves. The Mihrab has lost its paint, and looks quite archaic; only the brick and stone is visible. In the oration room, 16 undated tombs were found.
When Spain became Christian, many changes were made, including the addition of a central axis in accordance with the new religion. The old door and the North flank were also reconstructed. Despite these changes, the whole building still retains a rustic charm.
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.