Anti-discrimination law or non-discrimination law refers to legislation designed to prevent discrimination against particular groups of people; these groups are often referred to as protected groups or protected classes. Anti-discrimination laws vary by jurisdiction with regard to the types of discrimination that are prohibited, and also the groups that are protected by that legislation. Commonly, these types of legislation are designed to prevent discrimination in employment, housing, education, and other areas of social life, such as public accommodations. Anti-discrimination law may include protections for groups based on sex, age, race, ethnicity, nationality, disability, mental illness or ability, sexual orientation, gender, gender identity/expression, sex characteristics, religion, creed, or individual political opinions.
Anti-discrimination laws are rooted in principles of equality, specifically, that individuals should not be treated differently due to the characteristics outlined above. At the same time, they have often been criticised as violations of the inherent right of free association. Anti-discrimination laws are designed to protect against both individual discrimination (committed by individuals) and from structural discrimination (arising from policies or procedures that disadvantage certain groups). Courts may take into account both discriminatory intent and disparate impact in determining whether a particular action or policy constitutes discrimination.
Equality and freedom from discrimination are outlines as basic human rights by the Universal Declaration of Human Rights (UDHR). While the UDHR is not binding, nations make a commitment to uphold those rights through the ratification of international human rights treaties. Specific treaties relevant to anti-discrimination law include the International Covenant on Civil and Political Rights, the International Covenant on Economic, Social and Cultural Rights, the Convention on the Elimination of All Forms of Discrimination against Women, and the International Convention on the Elimination of All Forms of Racial Discrimination.