During pregnancy and a few weeks after conception, both male and female embryos have external genitalia that are essentially female. Once the foetus is 3 months old, if it is to develop into a male, the testes produce testosterone which causes the external male genitalia to develop. Genetic transmission therefore explains how individuals acquire their biological sex as well as aspects of gender and their sense of whether they are male or female.