Ibn Battuta was from Tangier , in present-day Morocco, in North Africa.