Which of the following laid the groundwork for the revolt that led to Mexico's independence from Spain?
A. the election of Juárez
B. the expansion of trade
C. the Mexican Cession
D. the conquest of Spain by Napoleon Bonaparte