The Cuban Revolution (Spanish: Revolución cubana) was the military and political movement that overthrew the dictatorship of Fulgencio Batista, who had ruled Cuba from 1952 to 1959. The revolution began after the 1952 Cuban coup d'état, in which Batista overthrew the emerging Cuban democracy and consolidated power. Among those who opposed the coup was Fidel Castro, then a young lawyer, who initially tried to challenge the takeover through legal means in the Cuban courts. When these efforts failed, Fidel Castro and his brother Raúl led an armed assault on the Moncada Barracks, a Cuban military post, on 26 July 1953.
Following the attack's failure, Fidel Castro and his co-conspirators were arrested and formed the 26th of July Movement (M-26-7) in detention. At his trial, Fidel Castro launched into a two-hour speech that won him national fame as he laid out his grievances against the Batista dictatorship. In an attempt to win public approval, Batista granted amnesty to the surviving Moncada Barracks attackers and the Castros fled into exile. During their exile, the Castros consolidated their strategy in Mexico and subsequently reentered Cuba in 1956, accompanied by Che Guevara, whom they had encountered during their time in Mexico.