The injection prevents pregnancy by preventing ovulation. That is, it stops the egg from leaving the ovary. It thickens the cervical mucous, making it difficult for sperm to penetrate the womb (uterus).