Fulgencio Batista seized power in Cuba in 1952 through a coup, which was unpopular with many Cubans who opposed his authoritarian rule. Fidel Castro began plotting to overthrow Batista. In 1953, Castro led an attack on the Moncada barracks, which failed, and he was imprisoned but later released. In 1955, Castro went to Mexico and formed the July 26th Movement to continue fighting Batista's regime through guerrilla warfare in the mountains. By 1958, Castro's forces had gained strength while Batista's military was weakened. Batista fled Cuba in 1959, and Castro entered Havana in January 1959 to popular acclaim, culminating in the Cuban Revolution.