In the course of 1943 and 1944 the Soviet Red Army gradually recaptured most of the Ostland territory in their advance westwards, but Wehrmacht forces held out in the Courland pocket until May 1945. With the end of the war in Europe and the defeat of Germany in 1945, the Reichskommissariat ceased to exist.