A population-based cohort study investigated postnatal depression in Brazilian women who attempted an abortion. Participants' views and actions on abortion were assessed during pregnancy and postnatal depression was evaluated with the Edinburgh Postnatal Depression Scale. An unsuccessful abortion attempt was associated with postnatal depression (adjusted OR = 1.6, 95% CI 1.0-2.5). In Brazil abortion is illegal under most circumstances.