How does the diaphragm work? The diaphragm prevents the sperm from entering the uterus and swimming up to meet the egg and joining together to become a pregnancy. After intercourse the diaphragm must be left in place for six hours. During this time any sperm in the vagina die due to the normal acid environment in the vagina.