What was the Mexican declaration of war while they were still owned by spain?

The Mexican declaration of war while they were still owned by Spain was the Mexican War of Independence, which began on September 16, 1810 with the Grito de Dolores. This marked the beginning of the struggle for independence from Spanish colonial rule in Mexico.