King Alfonso XIII,who came to the throne in 1902 insisted on involvement with political affairs, including the removing ministers and prime-ministers.
Anarchy was also growing. At the king's wedding in 1906, a bomb was thrown at the royal carriage. It killed 24 people and two of the horses drawing the carriage. The king and queen were unhurt.
Spain stayed neutral in World War 1 of 1914 to 1918 but had enough turmoil of it's own with political violence on the increase.
The military used a large proportion of the national budget but it's effectiveness was not certain.
The country was making economic progress during this dictatorship. making money.