From 1929 he lived in Kraków and retired from the military. In 1931-1933 he was a mayor of Kraków and from 1933 to 1937, voivode of Lwów. In 1938 he retired from public work due to worsening health; he died later that year, aged fifty.