It all began with a coup d'etat on July, 1936, carried out by a part of the army against the Second Spanish Republic, carefully planned by José Sanjurjo, Emilio Mola (who commanded the uprising) and Francisco Franco among other generals. The coup was more successful where in the zones where the people had voted for the right wing, and failed where the Popular Front was victorious, such as in Madrid and Barcelona.