Which event led most directly to the independence movement in Latin America?

A. Simón Bolívar's death
B. The defeat of revolutionaries in Haiti
C. Charles III's control of Spain
D. The end of the encomienda system