ref
ethnic + -ity
ethnicity (n.)
"ethnic character," 1953, from ethnic + -ity. Earlier it meant "paganism" (1772).