Well. The Mexican Revolution of Independence was not raised against the Spanish rule but in its favour and in opposition to the French invasion of Spain. And the president you're talking about is Guadalupe Victoria.
MacGregor has a rather tortured tone. "Whatever you think of the story of the Virgin of Guadelupe" which he just described as overcoming official opposition, unable to recognize the PHENOMENON of spiritual-religious experience. "Just a story...."