GO:0007548: sex differentiation
The establishment of the sex of an organism by physical differentiation.