 His projects ran large deficits which he kept hidden.His multiple repeated mistakes discredited the king and ruined the monarchy, while heightening social tensions.Primo de Rivera was replaced by Dámaso Berenguer (his government was known as the "dictablanda").