The dictatorship of Primo de Rivera was the historical subperiod of the Bourbon Restoration in Spain comprising the dictatorial government of General Miguel Primo de Rivera extending from 1923 to 1930, during the wider reign of Alfonso XIII.
General Miguel Primo de Rivera y Orbaneja entered power in September 1923 through a successful military coup in the mould of 19th century pronunciamientos that won the acquiescence of King Alfonso XIII, putting an end to the previous model of liberal and parliamentary monarchy (based on the 1876 Constitution) and, this, undermining the constitutional legitimacy of the monarch.
The first part of the dictatorship from 1923 to 1925 comprised a military directorate. On 3 December 1925, Primo de Rivera installed a Civil Directorate with a Council of Ministers featuring civilians.
Primo de Rivera, increasingly unpopular in the late 1920s, handed in his resignation in January 1930 after losing support from the military and the King, who appointed General Dámaso Berenguer in order to replace him.