 In 1923, a military coup brought Miguel Primo de Rivera to power; as a result, Spain transitioned to government by military dictatorship.Support for the Rivera regime gradually faded, and he resigned in January 1930.He was replaced by General Dámaso Berenguer, who was in turn himself replaced by Admiral Juan Bautista Aznar-Cabañas; both men continued a policy of rule by decree.