During the colonial period, the Spanish Empire heavily relied on African slaves to bolster its economy, particularly in agriculture and mining. Between 200,000 and 500,000 enslaved Africans were brought to Mexico, contributing to a substantial Afro-Mexican population by the time of the independence movement. The contributions of Afro-Mexicans, who were often enslaved or of mixed heritage, were crucial in shaping the revolutionary landscape.