The problem of two emperors and the dispute between the Holy Roman Empire and the Ottoman Empire would be finally resolved after the two empires signed a peace treaty following a string of Ottoman defeats.