Where is the "maleness" gene and what does it do?
It's on the Y chromosome, there is a Sex-determining Region of the Y chromosome (SRY). When the gene turns on, male characteristics are produced. If it doesn't turn on (even if present) the fetus will be female. For the first 40 days, males and females are exactly alike.