The Nazi occupation of Denmark unfolded in a unique manner. The Monarchy remained. The conditions of occupation started off very leniently (although the authorities banned Danmarks Kommunistiske Parti (the Communist party) when the Wehrmacht invaded the Soviet Union in June 1941), and Denmark retained its own government. The new coalition government tried to protect the population from Nazi rule through compromise. The Germans allowed the Folketing to remain in session. Despite deportations of nearly 2,000 of its members, the police remained largely under Danish control, and the German authorities stayed one step removed from the population. However, the Nazi demands eventually became intolerable for the Danish government, so, in 1943, it resigned and Germany assumed full control of Denmark. From that point, an armed resistance movement grew against the occupying forces. Towards the end of the war, Denmark grew increasingly difficult for Germany to control, but the country remained under occupation until near the end of the war. On 4 May 1945, German forces in Denmark, North West Germany, and the Netherlands surrendered to the Allies. On 5 May 1945, British troops liberated Copenhagen. Three days later, the war ended.