 Until February 1918 he was Austro-Hungarian governor general of Lublin, but resigned in protest when Germany turned Chełm and the surrounding area over to the Ukrainians.He joined the newly recreated Polish Army in November 1918, and replaced General Tadeusz Rozwadowski as Chief of the General Staff, a post that he held until March 1919.During the Polish-Soviet War of 1919–1921, Szeptycki commanded the Polish Northeast Front and the 4th Army.