Desiderius, born in Brescia, was originally a royal officer, the dux Langobardorum et comes stabuli, "constable and duke of the Lombards," an office apparently similar to the contemporaneous Frankish office of dux Francorum.
King Aistulf had made him duke of Istria and Tuscany and he becomes king after the death of Aistulf in 756.
At this time, Aistulf's predecessor, Ratchis, leaves his monastic retreat of Montecassino and tries to seize the kingdom, but Desiderius puts his revolt down quickly with the support of Pope Stephen II.
At his coronation, Desiderius promises to restore many lost papal towns to the Holy See, in return for the papacy's endorsement of his claim.