The Treaty of Córdoba was an agreement signed on August 24, 1821, which recognized Mexico's independence from Spanish rule. This treaty marked the culmination of a protracted struggle for independence in New Spain and was pivotal in establishing the framework for the nascent Mexican nation-state. It was a crucial step in the broader context of independence movements across Spanish America, as it represented not only a significant victory for Mexican revolutionaries but also inspired other territories seeking to break free from colonial domination.