Sex development is determined by genes on the X and Y chromosomes. One of the most important ones is *SRY* on the Y chromosome. Having this gene makes the embrio develop testicles, which then produce hormones that lead to development of other masculine traits. If the *SRY* gene is nonfunctional, you can get an XY woman. If the *SRY* gene gets translocated to the X chromosome, you can get an XX man.
There are many other genes and organs involved that will determine the final phenotype.
Latest Answers