In the War of the Spanish Succession, Catalonia declared its support for the archduke Charles and resisted the accession of the Bourbon dynasty in Spain, but in 1714 it was completely subjugated by the forces of the Bourbon Philip V, who abolished the Catalan constitution and autonomy. Catalan nationalism became a serious force after 1876, when the defeat of the Carlists led the church to transfer its support to the movement for autonomy.
Catalan nationalism had two major strands: a conservative, Roman Catholic one and a more liberal, secular one.
Catalonia’s traditional agriculture was centred on the production of wine, almonds, and olive oil for export, as well as rice, potatoes, and corn (maize) as staples.
Catalonia’s growing demand for petroleum products led to the expansion of Tarragona’s petroleum refineries.
Occupied during the 5th century by the Goths, it was taken by the Moors in 712 and at the end of the 8th century by Charlemagne, who incorporated it into his realm as the Spanish March, ruled by a count.
Frankish suzerainty over Catalonia was merely nominal, however, and was completely rejected during the reign of Count Borrell (died 991).
Though it retained its autonomy and Generalitat (assembly), by the 17th century its conflict of interest with Castile, along with the decline of the Spanish monarchy’s prestige, led to the first of a series of Catalan separatist movements.
In 1640 Catalonia revolted against Spain and placed itself under the protection of Louis XIII of France, but the revolt was quelled in the 1650s.