In southern Spain, such as Andalusia and Extremadura, semi-feudal conditions prevailed with labourers paid starvation wages, leading to poverty and illiteracy
In northern Spain, farms were owned or rented by peasant proprietors, but rents were high and smallholdings were too small to generate a reasonable living wage
Despite long-standing commercial links with the rest of Europe, there was little industrial development in Spain, with industrialisation still in its early stages
The absence of a strong industrial base led to emigration to colonies in South America, which alleviated the pressures of population growth, but post-World War I tighter immigration controls meant more rural-urban migration and a consequent rise in housing issues
The Catholic Church and the army were very influential in Spain, with the Church almost always supporting the interests of the wealthier classes, leading to resentment from poorer Spaniards
The army was too large and expensive for Spain's diminished world role, with a top-heavy officer corps that was impossible to reduce or reform, as it employed mainly the upper and middle classes and symbolised former greatness
The tradition for officers and generals to take political initiatives and inaugurate coups meant the army still had the power to create and destroy governments
Unlike most European countries at the time, Spain had a strong Anarchist presence, with Bakunin's ideas advocating land reform, destroying the state through spontaneous revolution and general strikes to create self-governing communes
Spain's constitutional monarchy system was more akin to an oligarchy than a genuine democracy, with the "caciquismo" system of local notables controlling elections through intimidation, ballotrigging, and patronage
During World War I, Spain's neutrality temporarily boosted its economy, freeing it from foreign competition, but the end of the war led to renewed competition, unemployment, and a fall in demand for agriculture
In 1917, army officers protested low pay, which escalated to include Catalan separatists, trade unions, and anarchists in the "Assembly Movement" that demanded Catalan autonomy
In 1906, Spain acquired part of Morocco, leading to a series of campaigns against the Riff Tribes, which promoted the emergence of a cohesive and experienced breed of army officers, the Africanistas, including Franco
In July 1921, the Rif leader Abd el Krim defeated Spanish forces at the Battle of Annual, leading to the death of 100,000 Spanish troops and a parliamentary committee investigation into the responsibility for the disaster
To forestall the report of the parliamentary committee, which was thought might blame the King and precipitate the fall of the monarchy, Miguel Primo de Rivera, the military governor of Barcelona, declared a pronunciamento in September 1923, and Spain was ruled by patriots, not politicians
Primo de Rivera, seen as Alfonso's "Mussolini", suspended the constitution, closed the Cortes, banned political parties, and set up a Directory of Generals to run the government
Primo de Rivera's regime coincided with political prosperity and was supported by socialists and the UGT, but he failed to reconcile the interests of key interest groups, leading to the rise of republicanism and the army turning against him