A miscarriage is pregnancy ending suddenly, before 20 weeks. After this time it is termed a stillbirth. Miscarriages usually occur because of a genetic problem in the foetus (fetus).