Compare and contrast the motives of the Cuban and Mexican Revolutions?

Although there had only been a single Cuban Revolution, there have been several revolutions and revolts in Mexico. So for this question I’ll be comparing the Cuban Revolution to the 1821 Mexican revolution.

The Mexican Revolution broke out in 1821 and was fought between the Spanish and a ragtag alliance of Indians, Mexican-born Spaniards and Mestizos. It began as a peasant-led rebellion against the Empire of Spain and ended with an alliance between royalists and guerilla fighters. The revolution broke out in a small village known as Dolores where a priest, Miguel Hidalgo, helped lead the militia of his town against the Spanish. Hidalgo would eventually be capturing and killed. Guerilla fighting ensued for about a decade until an alliance was formed with powerful loyalists, who eventually helped the rebels push the Spanish out of Mexico.

The Cuban Revolution began in 1953 when Revolutionaries, most of whom were native Cubans, attacked a military barracks. Unlike the Mexican revolution, this was an internal struggle between a left-wing revolutionary group and a semi-totalitarian regime that was viewed as corrupt and the puppet of western interests. Like the Mexican revolution the instigators eventually failed in their first attempt, but after they were freed they were exiled to Mexico where they planned future attacks with an alliance of like-minded revolutionaries from other Spanish speaking areas. Most notably Che Guevera of Argentina. A prolonged guerilla war began, similar to that in Mexico. After repeatedly defeating the better armed military, a counter-offensive launcher by the rebels succeeded in forcing the Cuban president, Batista, to resign.