In some societies if someone exhibits undesirable or criminal behaviour, then everyone is told or decides for themselves to not interact with this person and pretend that the person doesn't exist. This can be used as a form of punishment. They are Shunned. The purpose of this is that the psychological impact of being treated this way can cause them to reform.
See Shunning in Wikipedia