The right not to be evicted for either a building or a piece of land may be rooted in human rights (each human has the right to live at least somewhere - especially if there is no reasonable alternative), customary rights (one may live in a certain area but the rights are not formally registered; yet there may be a legitimate claim for historical and/or traditional reasons) , the right to compensation (if one is expelled from a house or an area forcefully, then there should be at least some form of in-kind or in-cash compensation) and the right to the city and inclusion in planning (living is cities is getting increasingly expensive and exclusive for very rich minorities).
However, in practice, most of such anti-eviction rights are not very strong in the end. Very often eviction still takes place. I am therefore looking for examples of Acts and jurisprudence where anti-eviciton rights have been firmly established and practiced. I would also like to hear your opinion about whether such anti-eviction rights or Acts should exist in the first place.