The anarchist movement which spread across Spain in the late 19th and early 20th centuries was based on the ideas of Mikhail Bakunin and propagated by Giuseppi Fanelli. It urged oppressed workers to unite and organize against their oppressors, namely the State, the latifundista landowners, and the Church. It quickly took a hold amongst the long-exploited agricultural workers in Andalusia, who joined the CNT union or the more radical FAI and had some limited success in improving wages and working conditions.
The establishment's attempts to stamp out such revolutionary zeal came to a tragic head in 1933 at Casas Viejas, now Benalup-Casas Viejas, in the Province of Cadiz. A small group of militants trying to resist arrest after a failed uprising barricaded themselves in a cottage, which was burned down with the anarchists and their families still inside. Soldiers and police then arrested anyone in the village who possessed a gun, marched them to the smoking ashes of the cottage and their dead colleagues, and shot them in the back. The massacre led to national outrage and there was considerable debate about whether the orders to kill had or had not been issued by the President of the Second Spanish Republic, Niceto Alcalá-Zamora. This was never proven, but it is believed to have contributed to his defeat in the following general election.