Oxytocin acts on uterine muscle, and cause stronger uterine contraction, leading to expulsion of the foetus & baby out of uterus.
The signals from fully formed foetus and the placenta which induce mild uterine contraction/foetal ejection reflex triggers release of oxytocin.