Question: abortion

Why was abortion made illegal in the 1800s? what were some of the laws preventing women from getting abortions? (any primary sources would be very helpful). what did the american medical association have to do with the prohibition of abortion in the 1800s? What did religion say about abortion in the 1800s?