Function during development. As the scrotum and labia majora form in males and females respectively, the gubernaculum aids in the descent of the gonads (both testes and ovaries). The testes descend to a greater degree than the ovaries and ultimately pass through the inguinal canal.