Gabriel J. de Yermo (1757 Sodupe, near Bilbao, Spain – 1813, Mexico City) was a wealthy landowner in New Spain, leader of the anti-independence party, and leader of the coup that overthrew Viceroy José de Iturrigaray in 1808.
When Gabriel de Yermo moved from Spain to New Spain, he married María Josefa de Yermo, his first cousin and heiress of the haciendas of Temixco and San Gabriel, in the current state of Morelos. Later he came to control the monopoly on aguardiente and the sale of meat in Mexico City.
In 1790 Yermo celebrated the birth of his first child by freeing all of his more than 400 slaves. In 1797, acquired the hacienda of Jalmolonga, which belonged to the Jesuits and did the same with the slaves that worked there. In 1808, to celebrate the saint day of his wife, 200 slaves belonging to the Hacienda de Temixco were freed. This was one of the reasons why these former slaves did not contribute to the independence movement, but were instead on the royalist side, initially helping to defeat Viceroy Iturrigaray in 1808 and later remaining loyal to the King of Spain into the 1820s, after many Spanish-born generals and civil servants had switched their loyalty to an independent Mexico.
News of the abdication of the Spanish king, Ferdinand VII, in favor of Napoleon was received in Mexico on July 14, 1808. It produced immediate discontent among the Criollos (Spaniards born in New Spain). On July 19, 1808, members of the Cabildo (city council) of Mexico City Juan Francisco Azcárate y Ledesma and Francisco Primo de Verdad y Ramos presented a plan to form a junta—that is, a provisional, autonomous government—of New Spain, with Viceroy Iturrigaray at its head. The plan was accepted by the viceroy and the Cabildo, but not by the Audiencia. It was also vehemently opposed by the Peninsulares (Spaniards resident in New Spain, but born in the mother country).