After the Sweden's defeat in Russo-Swedish War 1741-1743 (also known as the Hats' Russian War) eastern border of Finland was moved to west. Important fortresses of Hamina, Lappeenranta and Savonlinna were left to Russian side of border.
The city of Loviisa was established in 1745 to handle a international commerce in Finland. Planning of the new fortification system started concurrently, because Loviisa was located alongside the strategic road from Vyborg to Turku. The parliament accepted the plan of twin fortresses in 1747: one in Loviisa city to protect the road and another to Svartholma island to defence Loviisa from the sea. Building of the Loviisa fortress started in 1748, but the plans were never completed. The ground was too muddy for heavy stone walls and the Crown had continuous lack of money. Building was interrupted in 1757 and the king Gustav III ordered to stop the construction permanently in 1775. Loviisa fortress didn't see any battle. In the Finnish War 1808-1809 it surrended to Russians without fighting, because people of Loviisa were afraid of the destruction of the city.
Nowadays there remains two completed bastions, Rosen and Ungern. Renovation started in the 1960's and Ungern is mostly renovated. Rosen is still uncompleted and mostly ruined.
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.