Unable to put a stop to the political tension and low morale of the country, Alfonso XIII allows a military general to establish a dictatorship from 1923-1931. The dictatorship is unable to solve the problems of the country. In 1931, elections are held to determine if Spain should continue a monarchy or give democracy another try. The Second Republic of Spain is established in 1931, ushering in an era of hope and optimism. They set up a new, progressive constitution, which gives women the right to vote, allows divorce, separates the Church from the State, and creates public schools.