During the Middle Ages, the Iberian Peninsula was home not to Spain and Portugal but rather to al-Andalus. Ruled by a succession of Islamic dynasties, al-Andalus came to be a shorthand for a legendary place where people from the Middle East, North Africa, and Europe; Jews, Christians, and Muslims lived together in peace.