Simple:
* The village shunned the family after the scandal.
* He was shunned by his friends for his hurtful words.
With more detail:
* The artist was shunned by the art community after his controversial work.
* The politician was shunned by his own party for his dissenting views.
* The family shunned their estranged relative, choosing to ignore him completely.
Figurative:
* The new technology was shunned by the older generation, who found it confusing and unnecessary.
* The novel was shunned by critics for its unconventional narrative structure.
Remember that "shunned" suggests a deliberate and often permanent act of social rejection. It's a strong word and should be used carefully.