Conflict in Spain from 1898-1939 was a turbulent period. There was social unrest against political corruption and conservatives and liberals sought reforms. José Canalejas enacted some reforms but parties remained unstable. Protests in 1917 against poverty and the Rif War led to strikes. From 1918-1921, laborers clashed with police during strikes and occupied land. A military dictatorship under Primo de Rivera established censorship and repression from 1923-1931. The economic crisis of 1929 further impacted Spain. Primo de Rivera resigned in 1930 due to public hostility and General Berenguer established a milder dictatorship.