After service in World War I of 1914-1917 and in the Russian Civil War of 1917-1923, from 1920 to 1921 he commanded the Soviet Western Front in the Polish–Soviet War. Soviet forces under his command successfully repelled the Polish forces from Western Ukraine, driving them back into Poland, but the Red Army suffered defeat outside of Warsaw, and the war ended in a Soviet defeat. He later served as chief of staff of the Red Army from 1925 through 1928, as assistant in the People's Commissariat of Defense after 1934 and as commander of the Volga Military District in 1937. He achieved the rank of Marshal of the Soviet Union in 1935.