In 1820, a revolution in Spain put a new group in power. Mexico's creoles feared that this Spanish government would take away their privileges. At once, the creoles united in support of independence. The very man who had killed Morelos, Iturbide, made peace with the last guerrilla leader.
Hope this helps