Answer :

Napoleon's invasion of Spain (1807-1808) provided the spark that the rebels needed.