The sex of a mammal is determined by sex chromosomes:
* Females have two X chromosomes (XX).
* Males have one X and one Y chromosome (XY).
The Y chromosome contains the SRY gene, which triggers testes development. Fertilization by a Y-carrying sperm creates an XY embryo. The SRY gene activates, leading to testosterone production and male development.
Other genes and rare genetic conditions can also influence sex development.