The Spanish War of Independence (1808-1814) was a conflict between Spain and France during the Napoleonic Wars. It began when Napoleon Bonaparte invaded Spain, leading to widespread resistance against French rule. The Spanish people, along with various guerrilla groups, fought to reclaim their sovereignty, resulting in a protracted and brutal struggle.
The war also sparked the emergence of various regional governments, known as juntas, which sought to represent Spanish interests. Ultimately, the conflict ended with the defeat of French forces and the restoration of the Spanish monarchy, significantly influencing Spain's political landscape in the years that followed.