Because of his involvement in terrorist incidents, Deidara was forcibly expelled from the Village Hidden by Rocks.
After being driven out, Deidara mostly lived on the outskirts of the village without completely cutting ties or leaving for good.
He still maintained contact with the village, retained his status as a Village Hidden by Rocks ninja, and accepted missions whenever needed.
Chapter 272