The 19th Division continued to fight in Latvia. In October 1944, Soviet advances in Lithuania cut off it and other units in the Courland Pocket from the rest of the German forces. It was a part of the six battles between Soviet and German armies in the Courland Pocket in 1944 and 1945. During the third battle in December 1944, the opposing Soviet units included two Latvian divisions, the 43rd and the 308th, formed from recruits drafted in Soviet-occupied Eastern Latvia. When the Latvian units on both sides of the front faced one another, they were quite unwilling and occasionally disengaged without firing a shot. The Soviet command would transfer the Latvian divisions elsewhere after a few days. Together with other units in the Courland Pocket, the 19th division surrendered to the Soviets at the end of the war on May 9, 1945. Subsequently, almost 50,000 Latvian soldiers became Soviet prisoners of war, imprisoned in filtration or Gulag camps. Some of the Legion soldiers continued fighting the Soviets as Forest Brothers for up to ten years after the end of the war.