The molecular mechanism of sex determination in birds has long remained mysterious. Genetically male chicken embryos, which have two Z sex chromosomes, develop female gonads when the Z chromosome-linked gene DMRT1 is knocked out. This suggests that sex is determined by Z chromosome dosage.