Japan comes to mind, e.g. the Burakumin aka Japanese Untouchables
https://en.wikipedia.org/wiki/Burakumin
> Burakumin (部落民, 'hamlet/village people', 'those who live in hamlets/villages') is a term for ethnic Japanese people who are believed to be descended from members of the pre-Meiji castes which were associated with kegare (穢れ, 'defilement'), such as executioners, undertakers, slaughterhouse workers, butchers, and tanners...Due to severe discrimination and ostracism in Japanese society, these groups came to live as outcasts, in their own separate villages or ghettos. After the caste system was abolished, the term burakumin came into use to refer the former caste members and their descendants, who continued to experience stigmatization and discrimination.