At that time, Poland had fought three wars to establish its eastern frontier: with Ukraine (see Polish–Ukrainian War), the Soviet Union (see Polish–Soviet War), and with Lithuania (see Polish–Lithuanian War).