Mexico's War of Independence lasted for eleven years, spanning from September 16, 1810, when the movement was initiated by Miguel Hidalgo, to September 27, 1821, when the independence of Mexico was officially declared with the signing of the Treaty of Córdoba.