On January 3, 1920 the united Latvian and Polish forces launched an attack on the Soviet army in Latgale and after the Battle of Daugavpils liberated Daugavpils. By the end of January they reached the ethnographic border of Latvia and peace negotiations with Soviets soon began.