The Mexican War of Independence was a revolutionary struggle that began in 1810 and culminated in 1821, resulting in Mexico's independence from Spanish colonial rule. The conflict arose from a combination of social, political, and economic grievances against the casta system and colonial hierarchy that marginalized the indigenous and mixed-race populations, leading to widespread calls for reform and autonomy.