In 1917 Finland became independent. In 1918 Viapori was taken over by the new Finnish government and was renamed Suomenlinna ( meaning "Castle of Finland"). Some of the islands were used as a navy school. There was also a prison, and prisoners worked to repair the old fortress. 