Between 1812 and 1813, Catalonia was directly annexed to France itself, and organized as four (later two) départements.
French dominion in parts of Catalonia lasted until 1814, when the British General Wellington signed the armistice by which the French left Barcelona and the other strongholds that they had managed to keep until the last.