The menstrual cycle is a series of steps that prepares the uterus for the implantation of a fertilised egg.
If there is no fertilised egg, then the cycle repeats.
But if there is a fertilised egg, then the cycle will stop and the egg will implant into the uterus lining, where it can develop into a foetus.