Testosterone is critical for the sexual differentiation of the fetus. During fetal development, the presence of testosterone leads to the formation of male genitalia, while its absence typically results in female genitalia. Abnormal levels of testosterone during neonatal development can lead to disorders such as ambiguous genitalia or other forms of intersex conditions.