Typically in mammals, the gender of an organism is determined by the sex chromosomes. The sex chromosomes of humans are X and Y chromosomes.
Females have two X chromosomes, while males have both X and Y chromosomes. So, a human male can be identified by the presence of the Y chromosome, which is a type of sex chromosome.