An ethnic group or ethnicity is a grouping of people who identify with each other on the basis of shared attributes that distinguish them from other groups such as a common set of traditions, ancestry, language, history, society, culture, nation, religion or social treatment within their residing area. Ethnicity is sometimes used interchangeably with the term nation, particularly in cases of ethnic nationalism, and is separate from, but related to the concept of races.