 Upon his return he was made a count and made the head of the Army of Catalonia from October 1811 to January 1814, fighting in Spain.From his headquarters in Barcelona, he reported to Marshal Louis Gabriel Suchet.He formed the Catalan guides and gained their high regard.