The Courland Pocket was an area of the Courland Peninsula where Army Group North of Nazi Germany and the Reichskommissariat Ostland were cut off and surrounded by the Red Army for almost a year, lasting from July 1944 until 10 May 1945. The pocket was created during the Red Army's Baltic Offensive, when forces of the 1st Baltic Front reached the Baltic Sea near Memel (Klaipėda) during its lesser Memel Offensive Operation phases. This action isolated the German Army Group North from the rest of the German forces, having been pushed from the south by the Red Army, standing in a front between Tukums and Libau in Latvia, with the Baltic Sea in the West, the Irbe Strait in the North and the Gulf of Riga in the East behind the Germans. Renamed Army Group Courland on 25 January, the Army Group in the Courland Pocket remained isolated until the end of the war. When they were ordered to surrender to the Soviet command on 8 May, they were in "blackout" and did not get the official order before 10 May, two days after the capitulation of Germany. It was one of the last German groups to surrender in Europe. Operation Bagration Courland, with the rest of independent Latvia, had been occupied by the Soviets in June 1940. The Latvian Soviet Socialist Republic, along with the rest of the Baltic eastern coast and islands, was overrun by the German Army Group North during 1941. Army Group North spent most of the next two years attempting to take Leningrad, without success. In January 1944, the Soviet Army lifted the siege of Leningrad. On 22 June 1944, the Red Army launched the Belorussian Strategic Offensive, codenamed Operation Bagration. The goal of this offensive was to recapture the Byelorussian SSR from German occupation. Operation Bagration was extremely successful, resulting in the almost complete destruction of Army Group Centre, and ended on 29 August. In its final stages (the Kaunas and Šiauliai Offensives), Operation Bagration saw Soviet forces strike deep towards the Baltic coast, severing communications between the German Army Group North and the remnants of Army Group Centre.