Classical Age of the Ottoman Empire
Expansion continued during the first half of the reign of Suleiman I (r. 1520-1566), who conquered first Belgrade (1521) and Rhodes, before invading Hungary in 1526, defeating and killing King Louis II in the Battle of Mohács and briefly occupying Buda. Lacking a king, Hungary descended into civil war over the succession, and the Ottomans gave support to John Zápolya as a vassal prince. When their rivals the Habsburgs began to achieve the upper hand, Suleiman directly intervened by again conquering Buda and annexing it to the empire in 1541. Elsewhere, Suleiman led major campaigns against Safavid Iran, conquering Baghdad in 1534 and annexing Iraq. Ottoman rule was further extended with the incorporation of much of North Africa, the conquest of coastal Yemen in 1538, and the subsequent annexation of the interior.
Selim I
Selim's conquest of the Middle Eastern heartlands of the Muslim world, and particularly his assumption of the role of guardian of the pilgrimage routes to Mecca and Medina, established the Ottoman Empire as the most prestigious of all Sunni Muslim states. His conquests dramatically shifted the empire's geographical and cultural center of gravity away from the Balkans and toward the Middle East. By the eighteenth century, Selim's conquest of the Mamluk Sultanate had come to be romanticized as the moment when the Ottomans seized leadership over the rest of the Muslim world, and consequently Selim is popularly remembered as the first legitimate Ottoman Caliph, although stories of an official transfer of the caliphal office from the Abbasids to the Ottomans were a later invention.