The Ottoman Empire took Baghdad from the Safavid Empire.