The development sequence is concluded in both sexes when the processus vaginalis obliterates. If this does not occur or is incomplete, a potential weakness exists in the anterior abdominal wall and an inguinal hernia may develop. In males, only proximal regions of the processus vaginalis obliterate. The distal end expands to enclose most of the testis in the scrotum. In other words, the cavity of the tunica vaginalis in men forms as an extension of the developing peritoneal cavity that becomes separated off during development.