Answer:
When Napoleon occupied Spain, this severed the link between Spain and its colonies. Creoles in the colonies saw this as an opportunity to restore their position in colonial society, which had been diminished by Spanish policies. Some even sought to free themselves entirely from Spanish rule.