In 1976, Juan Carlos failed to appoint Spanish general Mellado to the position of defence minister, instead appointing someone who was more right wing. However, Mellado was made chief of the general staff instead and used his position to appoint younger members within the army who supported democratic reforms. This, along with Suarez's promise not to legalise the PCE, helped to prevent successful military coups.