Spain decriminalised abortion in 1985 but only for certain cases: up to 12 weeks of pregnancy after a rape; up to 22 weeks in the case of malformation of the foetus; and at any point if the pregnancy represents a threat to the physical or mental health of the woman.