When the Entente-backed Ulmanis government counter-attacked with the backing of German Freikorps units in the spring of 1919, they quickly regained the lost territory. The capital, Riga, was recaptured on 22 May 1919, and the territory of the LSPR was reduced to a part of Latgale in eastern Latvia, until the final defeat in the Battle of Daugavpils by combined Latvian and Polish forces in early 1920.