The Latvian democrats led by Kārlis Ulmanis had declared independence as in Estonia but were soon pushed back to Liepāja by Soviet forces, where the German VI Reserve Corps finally stopped their advance.