Loviisa was founded in 1745, as a border fortress against Russia. Most of the fortifications have been preserved. It is named after Lovisa Ulrika, the Swedish Queen consort of Gustav III of Sweden. Two of the four Finnish nuclear power plants are located in Loviisa.