welcome to healthcaremagic forum
is known as abortion also
there are two main reason
one occur itself and other one induced by person
reason for first
-high blood pressure
-problem in uterus or other organ
-side effect of some drug
i hope i have answered your question .
prevention of it not possible in all case but proper care and regular follow up of gynecologist do well.
if body structure problem is not there then it will not affect future pregnancy