After failed expeditions in 1440–42 against Belgrade and Transylvania, and the defeats of the "long campaign" of Hunyadi in 1442–43, the Ottoman sultan Murad II signed a ten-year truce with Hungary. After he had made peace with the Karaman Emirate in Anatolia in August 1444, he resigned the throne to his twelve-year-old son Mehmed II.