Republik Krakau
From 1807 he was a member of the French Army and participated in wars with Spain (1808–1811) and with Austria (1809). He also participated in the Moscow campaign (1812) and later in battles in Germany and France. From 1815 he was in the army of the Kingdom of Poland and then he became an adjutant of Nicholas I and Alexander I. From 1826 to 1830 he was a curator of Free City of Kraków schools.