https://en.m.wikipedia.org/wiki/Gender_identity
Basically, it's a set of socially prescribed behaviours and expectations based on sex. Men wear trousers and are strong, women wear dresses and are graceful. That sort of thing. There's a few different concepts mixed up in the idea of gender, but it's effectively the social aspects associated with sex.