After the French Revolution, Napoleon I reestablished the Co-Principate in 1809 and removed the French medieval title. In 1812–1813, the First French Empire annexed Catalonia during the Peninsular War () and divided the region into four départements, with Andorra as a part of the district of Puigcerdà. In 1814, an imperial decree reestablished the independence and economy of Andorra.