Swedish neutrality refers to Sweden's former policy of neutrality in armed conflicts, which was in effect from the early 19th century, until 2009, when Sweden entered into various mutual defence treaties with the European Union (EU), and other Nordic countries. Sweden's previous neutrality policy had originated largely as a result of Sweden's involvement in the Napoleonic Wars during which over a third of the country's territory was lost, including the traumatic loss of Finland to Russia. Resentment towards the old king precipitated a "coup d'état" and the new regime formulated a new foreign policy which became known as "The Policy of 1812". Since the time of the Napoleonic Wars, Sweden has not initiated any direct armed conflict. However, Sweden's military and government have been involved in major peacekeeping actions and other military support functions around the world. The accession to the European Union in 1995 meant that neutrality as a principle was abolished. Sweden is still today a neutral and non-aligned country in regard to foreign and security policy. However, it maintains strong links to the North Atlantic Treaty Organization (NATO).