Gonadal differentiation is the process by which the undifferentiated gonads develop into either testes or ovaries, guided by genetic and hormonal signals. This process is crucial for sexual development and is primarily regulated by the presence or absence of the SRY gene on the Y chromosome, along with other factors like SOX9, DAX1, and WNT4 pathways.