Oxytocin (OT), a neuropeptide produced in the supraoptic (SON) and paraventricular (PVN) nuclei, is not only essential for lactation and maternal behavior but also for normal immunological activity. However, mechanisms underlying OT regulation of maternal behavior and its association with immunity around parturition, particularly under mental and physical stress, remain unclear. Here, we observed effects of OT on maternal behavior in association with immunological activity in rats after cesarean delivery (CD), a model of reproductive stress. CD significantly reduced maternal interests to the pups throughout postpartum day 1-8. On postpartum day 5, CD decreased plasma OT levels and thymic index but increased vasopressin, interleukin (IL)-1β, IL-6 and IL-10 levels. CD had no significant effect on plasma adrenocorticotropic hormone and corticosterone levels. In the hypothalamus, CD decreased corticotropin-releasing hormone contents in the PVN but increased OT contents in the PVN and SON and OT release from hypothalamic implants. CD also increased c-Fos expression, particularly in the cytoplasm of OT neurons. Lastly, CD depolarized resting membrane potential and increased spike width while increasing the variability of the firing rate of OT neurons in brain slices. Thus, CD can increase hypothalamic OT contents and release but reduce pituitary release of OT into the blood, which is associated with depressive-like maternal behavior, increased inflammatory cytokine release and decreased relative weight of the thymus.