In 1917, Finland declared independence. A civil war between the Finnish Red Guards and the White Guard ensued a few months later, with the Whites gaining the upper hand during the springtime of 1918. After the internal affairs stabilized, the still mainly agrarian economy grew relatively quickly. Relations with the West, especially Sweden and Britain, were strong but tensions remained with the Soviet Union. During the Second World War, Finland fought twice against the Soviet Union, first defending its independence in the Winter War and then invading the Soviet Union in the Continuation War. In the peace settlement Finland ended up ceding a large part of Karelia and some other areas to the Soviet Union. However, Finland remained an independent democracy in Northern Europe.