Amniocentesis is a procedure that involves inserting a needle through the abdominal wall to remove amniotic fluid from the amniotic sac in order to assess fetal health or maturity. It is usually offered after 15 weeks of pregnancy to check for genetic disorders or infections if other tests indicate risks. The amniotic fluid is then tested for markers of genetic conditions, lung maturity, infections, and other properties to evaluate the health of the unborn baby and presence of any disorders or complications. While generally safe, there are small risks of miscarriage, infection, or injury to the baby from the procedure.