Sultan Selim immediately began operations against Shiite rebels who had strong support in Anatolia. Forty thousand of them were killed in battle and later, at the Battle of Childiran, Shah Ismail was routed. The provinces of Dulkadiroghoullari, Marash and Elbistan were siezed. The Mamelukes were totally defeated at Medjibadik in 1516 and at Ridaniye in 1517. In addition, Syria, Egypt and Hejaz came, administratively, into the Ottoman Empire. On his last campaign to Edirne, Selim died at Chorlou in 1520. His son, Solyman the Magnificent (or Legislator) succeeded him.
During Solyman's sultanate the rebellion of Djanberdi Gazali was suppressed and Belgrade and Rhodesia added to the Empire. At the Battle of Mohadj the Hungarian armies were routed and Hungary became a Kingdom of the Ottoman Empire. In 1529 Vienna was siezed but never fully conquered.
After the retreat of the Ottoman armies the Austrian Emperor attacked, in an attempt to take Boudin, and Solyman began a new campaign. Austria was occupied and peace declared in 1533. The Grand Vizier, Ibrahim Pasha, was sent to rule Persia and Solyman left for Iraq.
Solyman conquered Baghdad and Tebriz and then declared war on Venice. Solyman attacked by land and Barbarossa Khairuddin by sea but, after the unsuccessful siege of Corfu, Turkish troops withdrew in 1537. A year later, however, Barbarossa destroyed the Christian fleet at Preveze and extended the Ottoman domination of the Mediterranean region.