Anders opposed Józef Piłsudski's coup d'état in Poland in 1926, but unlike Jordan-Rozwadowski, he avoided persecution by the Sanation regime that assumed power after the coup. Piłsudski made him the commander of a cavalry brigade in 1931 and he was promoted to the rank of general three years later.