The classification of sex and gender into two distinct and complementary categories, male and female.