After ovulation, the follicle that released the egg transforms into the corpus luteum. This structure secretes progesterone and, to a lesser extent, estrogen. Progesterone prepares the endometrium for a potential pregnancy by making it more suitable for an embryo to implant. If fertilization does not occur, the corpus luteum degenerates, leading to a drop in progesterone and the onset of menstruation.