Mehmed II acceded to the throne twice. In the first instance, at age 12, his father, Murad II, abdicated in his favour in accordance with a peace treaty. When the treaty was broken, the grand vizier and the Janissaries restored Murad to the throne. Mehmed ascended the throne again when his father died in 1451.