St. John's Church was built between the 12th and 16th centuries, though there must have been churches preceding it. It was heavily damaged during World War II, but it has been restored. The oldest part of the building is the Romanesque tower. The tower dates from the early 13th century.
The choir, in part likewise from the 13th century, is a mixture of Romanesque and Gothic elements, and features two side chapels. To the left of the choir is the vestry, above which there is a room that must once have served as a chapel.
The 14th-century nave is now quite low, as it is covered by a modern ceiling inspired by that of the vestry.
The chapel to the south of the nave dates from the 15th and 16th centuries. Its two bays have Gothic vaults. The vaults of the northern aisle, which an inscription dates 1513, are flamboyant Gothic.References:
First record of Kastelholma (or Kastelholm) castle is from the year 1388 in the contract of Queen Margaret I of Denmark, where a large portion of the inheritance of Bo Jonsson Grip was given to the queen. The heyday of the castle was in the 15th and 16th centuries when it was administrated by Danish and Swedish kings and stewards of the realms. Kastelhoma was expanded and enhanced several times.
In the end of 16th century castle was owned by the previous queen Catherine Jagellon (Stenbock), an enemy of the King of Sweden Eric XIV. King Eric conquered Kastelholma in 1599 and all defending officers were taken to Turku and executed. The castle was damaged under the siege and it took 30 years to renovate it.
In 1634 Åland was joined with the County of Åbo and Björneborg and Kastelholma lost its administrative status.