 There was little support for the monarchy in the major cities.Consequently, King Alfonso XIII gave in to popular pressure for the establishment of a republic in 1931 and called municipal elections for 12 April of that year.The socialist and liberal republicans won almost all the provincial capitals, and following the resignation of Aznar's government, King Alfonso XIII fled the country.