 Hidalgo was captured, defrocked as a priest, and executed, with his head left on a pike on the granary in Guanajuato as a warning to other insurrectionists.Another priest, José María Morelos took over and was more successful in his quest for republicanism and independence.Spain's monarchy was restored in 1814 after Napoleon's defeat, and it fought back and executed Morelos in 1815.