With the Grito de Dolores, Father Miguel Hidalgo begins Mexico's fight for independence from Spain.

The Mexican War of Independence (Spanish: Guerra de Independencia de Mxico, 16 September 1810 27 September 1821) was an armed conflict and political process resulting in Mexico's independence from Spain. It was not a single, coherent event, but local and regional struggles that occurred within the same period, and can be considered a revolutionary civil war.Independence was not an inevitable outcome, but events in Spain directly impacted the outbreak of the armed insurgency in 1810 and its course until 1821. Napoleon Bonaparte's invasion of Spain in 1808 touched off a crisis of legitimacy of crown rule, since he had placed his brother Joseph on the Spanish throne after forcing the abdication of the Spanish monarch Charles IV. In Spain and many of its overseas possessions, the local response was to set up juntas ruling in the name of the Bourbon monarchy. Delegates in Spain and overseas territories met in Cdiz, Spain, still under Spanish control, as the Cortes of Cdiz, and drafted the Spanish Constitution of 1812. That constitution sought to create a new governing framework in the absence of the legitimate Spanish monarch. It tried to accommodate the aspirations of American-born Spaniards (criollos) for more local control and equal standing with Peninsular-born Spaniards, known locally as peninsulares. This political process had far-reaching impacts in New Spain during the independence war and beyond. Pre-existing cultural, religious, and racial divides in Mexico played a major role in not only the development of the independence movement but also the development of the conflict as it progressed.In September 1808, peninsular-born Spaniards in New Spain overthrew Viceroy Jos de Iturrigaray (180308), who had been appointed before the French invasion. In 1810, American-born Spaniards in favor of independence began plotting an uprising against Spanish rule. It occurred when the parish priest of the village of Dolores, Miguel Hidalgo y Costilla, issued the Cry of Dolores on 16 September 1810. The Hidalgo revolt began the armed insurgency for independence, lasting until 1821. The colonial regime did not expect the size and duration of the insurgency, which spread from the Bajo region north of Mexico City to the Pacific and Gulf Coasts. After Napoleon's defeat, Ferdinand VII succeeded to the throne of the Spanish Empire in 1814 and promptly repudiated the constitution, and returned to absolutist rule. When Spanish liberals overthrew the autocratic rule of Ferdinand VII in 1820, conservatives in New Spain saw political independence as a way to maintain their position. Former royalists and old insurgents allied under the Plan of Iguala and forged the Army of the Three Guarantees. The momentum of independence saw the collapse of the royal government in Mexico and the Treaty of Crdoba ended the conflict.The mainland of New Spain was organized as the First Mexican Empire, led by Agustn de Iturbide. This ephemeral Catholic monarchy was overthrown and a federal republic was declared in 1823 and codified in the Constitution of 1824. After some Spanish reconquest attempts, including the expedition of Isidro Barradas in 1829, Spain under the rule of Isabella II recognized the independence of Mexico in 1836.

The Cry of Dolores (Spanish: Grito de Dolores) occurred in Dolores, Mexico, on 16 September 1810, when Roman Catholic priest Miguel Hidalgo y Costilla rang his church bell and gave the call to arms that triggered the Mexican War of Independence.

Every year on the eve of Independence Day, the President of Mexico re-enacts the cry from the balcony of the National Palace in Mexico City, while ringing the same bell Hidalgo used in 1810.