Castro's early writings and speeches seemed more consistent with the anarcho-syndicalist movement that originated in Eastern Europe during the late 19th Century and found great acceptance in Latin America during the early 20th Century. Although the Socialists and the Anarcho-Syndicalists both rejected capitalism, they were not allies. Karl Marx feared that the Anarcho-Syndicalists would dilute his movement and repudiated them. It is also significant that, shortly after driving Batista from the island, Castro made his first overtures for an alliance with the Americans. He only turned to the Soviets for economic help after the Eisenhower Administration openly rebuffed him and publicly insulted him. Kennedy exacerbated the rift by then mounting a series of attempts to either overthrow or assassinate Castro. Unfortunately, the Americans underestimated the man. It was obvious from the beginning that Castro was a firebrand.
While still a student in Havana, Castro led an abortive raid against the Dominican Republic in a desperate bid to overthrown that island's iron-fisted dictator, Rafael Trujillo. When he graduated in 1950, Castro found little opportunity professionally in a society that boasted too many lawyers. He took a few pro bono cases, but spent most of his time working for the Orthodox Party that opposed Batista, fashioning itself as the true inheritor of the revolution.
Castro was a candidate for the Cuban legislature in 1952 when Batista seized control of the government and suspended the constitution. Championing the restoration of constitutional government on the island, he then led his abortive attack on army barracks at Moncada near Santiago de Cuba. His band of rebels had intended to seize weapons and ammunition there to arm their rebel band. Unfortunately, Castro was never an adept military commander and the mission failed through poor command and coordination. Most of his band was killed and the rest scattered.
Castro was captured and would have been executed on the spot except for the intervention of his archbishop. Fidel's early education had been at the feet of the Jesuits and he was a pious man until he declared himself a communist.
During his trial, Castro made a four-hour speech in his own defense in which he condemned Batista and his government, and declared that history would absolve him. He was sentenced to serve fifteen years in prison of the Isle of Pines, but was later exiled to Mexico.