The Capture of Oaxaca was a battle during the War of Mexican Independence that occurred on 25 November 1812 at Oaxaca, Oaxaca. It was fought between the royalist forces loyal to the Spanish crown, commanded by General Antonio Pío González-Saravia Mollinedo, and the Mexican insurgents fighting for independence from the Spanish Empire, commanded by José María Morelos y Pavón. The battle resulted in a victory for the Mexican insurgents.