In 1923, a military coup brought Miguel Primo de Rivera to power; as a result, Spain transitioned to government by military dictatorship.