was, had been, has been, is, will be, always, a tool for enacting a political advantage.
Racism is a tool designed to disunite society and to distract attention from the real enemy.
Whether immigration or people in other countries, racism is the tool that governments use to try to ensure that the public miss the point about who is to blame.
Racism is not an intrinsic characteristic of human nature, it is an invented apparatus.
Obvious examples: Bombs explode on the tube due to imperialist economic policies backed by military action and an irrational reaction to those; bombs don't explode due to Islam being wonky. Job availability is poor and wages are low due to the increasingly-desperate capitalist inhumanity backed by protectionist government policy; it is not because of immigration.