exclude a person from a group
ostracize - shun
If you ‘ostracize’ somebody, you deliberately avoid them and, by common consent, prevent them from engaging in any social activities within a particular group. This group can be as small as a few friends or extend to involve the wider society. It is usually done to express strong disapproval or moral outrage at a person’s actions.
People in my local community sought to ostracize me after I was accused of the crime, even though I protested my innocence.
I suffered years of ostracism at work after I sued the company, but I didn’t let them force me out.
Tom was ostracized by the other students because of his strong political beliefs.