Autonomous community (pop., 2001: 6,343,110) and historic region, northeastern Spain. It encompasses the provinces of Girona, Barcelona, Tarragona, and Lleida and covers an area of 12,399 sq mi (32,113 sq km). Its capital is Barcelona. The Pyrenees separate Catalonia from France; the Mediterranean Sea lies to the east. Its principal rivers, the Ter, Llobrégat, and Ebro, all run into the Mediterranean. Catalonia was one of Rome's first Spanish possessions. Occupied in the 5th century AD by the Goths, it was taken by the Moors in 712 and by Charlemagne in 795. After the unification of Spain (1469), Catalonia lost its centrality in Spanish affairs, and by the 17th century its conflict of interest with Castile-León led to the first of a series of separatist movements. Catalan nationalism became a serious force after 1876. In 1932 a compromise with the central government granted Catalonia autonomy; this was revoked with the 1939 Nationalist victory in the Spanish Civil War, and Francisco Franco's government adopted a repressive policy toward Catalan nationalism. The reestablishment of democratic rule after Franco's death again led to autonomy in 1979. Today it is the richest and most industrialized part of Spain.