Answer:
Oxytocin is produced in the posterior pituitary gland and it's function is to encourage or endorse contractions in labor. It serves in the distension of the cervix. It is also responsible for post pardon depression as well as that mother child bond.
Source
Introduction to the Human Body
by Gerard Tortora and Bryan Derrickson