 The viceroy was slow to respond, but once the royal army engaged the untrained, poorly armed and led mass, they routed the insurgents.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.