The sudden ending of a pregnancy before the fetus is able to survive outside the womb. A miscarriage is most likely to happen early in the pregnancy (during the first trimester).