In 1806, he formed the 6th Lancers Regiment and joined the Army of the Duchy of Warsaw. At the head of his regiment he fought in Napoleonic campaigns: in 1807, in Pomerania, at Tczew and Gdańsk, and in 1809 at Sandomierz. During the second campaign, he also took Lublin and took part in the capture of Zamość. In 1810, he was promoted brigadier general and appointed military commandant of the Łomża Department. He did not assume the Łomża Department post, as he went on sick leave, which he spent in Teplitz and Karlsbad. In 1810–12, he was military commandant of the Lublin Department; and in 1812, of the Radom Department.
