Transferred to Spain, he fought in Domenico Pino's division at Roses, Cardadeu, Molins de Rei, Valls and Gerona and was promoted general of brigade in 1809. He led a brigade at El Pla and Tarragona in 1811 and was promoted general of division. He led his division at Saguntum, Valencia and Castro Urdiales in 1811–1813. Transferring to Italy, he fought at Cerknica in 1813 and Peschiera del Garda in 1814. After collapse of the Napoleonic Kingdom of Italy in 1814, he joined the army of the Austrian Empire, becoming a Feldmarschall-Leutnant. He became the Inhaber (proprietor) of the 36th Line Infantry Regiment in 1817. He retired in 1824 and died in 1850 at his wife's castle in Grochwitz near Herzberg (Elster).