Friendship is a natural part of life, and most people can name about half a dozen people they consider close friends. Yet, our behavioural bias to flock to people we consider similar to ourselves is driving discrimination and xenophobia as friends bond over common enemies.