Jawor Castle was originally a wooden stronghold until Duke Bolesław the Tall built a stone tower house. The castle has been a seat of both the Piast dynasty and the Duchy of Jawor-Świdnica. Several politically significant events took place in the castle during the Middle Ages. In 1648, the castle saw damage when it was besieged by soldiers loyal to the Holy Roman Empire, but it was renovated later during the same century (1663-65). Another renovation was carried out in 1705, when the clock tower was repaired.
Later during the 18th century, Frederick the Great converted the castle into a prison, a role which it would keep until 1956. Until 1821, it also housed an asylum for mentally ill. After 1888, the hitherto all-male prison became an all-female prison, and stayed in this capacity until 1945. During World War II, it was used as such also by the German authorities who among others imprisoned several French women here. A memorial commemorating them has been erected in the castle courtyard. After 1945, it housed political prisoners and former soldiers of the Home Army.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.