Genetic sex determines whether the gonads will be testes or ovaries. In the developing embryo if the testes are developed, it will produce and secrete male sex hormones during late embryonic development and cause the secondary sex organs of the male to develop.[2]