 A Poland-Ukraine border first formed, briefly, in the aftermath of the Polish–Ukrainian War in 1919.The Treaty of Warsaw of 1920 divided the disputed territories in Poland's favor along the Zbruch River.Next year, however, Ukraine lost its independence to the Soviet Union, and its remaining territories were split between Poland and the Ukrainian Soviet Socialist Republic in the Peace of Riga.