During the Spanish inquisition, Jews, Arabs, and Berbers were targeted the most. This policy was called Limpieza de sangre (Blood Cleansing). Even if a Jew, Arab, or Berber converted to Christianity, Spanish authorities during that time referred to them as New Christians, which were the target of institutional discrimination and suspicion by the Spanish Inquisition. New Christians of Muslim heritage were referred to as moriscos, meaning Moor-like. Those of Jewish heritage were termed Conversos and those who secretl continued to practice Judaism were referred to as marranos (either from Spanish marrar to err/deviate or from marrano meaning "swine".). After the Reconquista, many Mudéjars (individual Arabs and Berbers, who remained in Iberia after the Christian Reconquista but were not converted to Christianity remained in Spain as practicing Muslims and Sephardic Jews were required to convert to Catholicism or leave the country in 1492. Attitudes towards Moriscos varied in different regions, although they were never the main target of the Inquisition. A few decades after the War of the Alpujarras, during which the Muslim-majority population of Granada rebelled, the King of Spain ordered the Expulsion of the Moriscos from Spain, which was implemented successfully in the eastern region of Valencia and less so in the rest of Spain.
Spain has tried to correct the ethnic cleansing against Jews and Muslims (Arabs and Berbers) calling it "historical error", inviting Jews back and recently granting all Sephardic Jews who apply for it Spanish nationality.
During the decades of economic boom in the late 20th century, after joining the European Union, Spain had experienced a large influx of immigrant workers to Spanish big cities from Latin America, Africa, and Asia, with the result of many employers preferring to hire foreign workers for a cheaper wage.