Our key finding was that anxious attachment in pregnancy had both a direct and indirect association with oxytocin postpartum, the latter pathway being mediated via separation anxiety and depression. Here, OXT is linked to depressive symptom measurement.