discriminate (差別する): It is illegal to discriminate on the basis of race or gender. (人種や性別に基づいて差別することは違法です)

It is illegal to discriminate on the basis of race or gender.