Article 305 of Thai Penal Code states that abortion is illegal except in cases when it is committed by a medical practitioner and is considered only as necessary if the same endangers the health of the mother or when the pregnancy is due to sexual offenses such as rape and incest.