In summary, our findings reveal that oxytocin enhances the stress-protective effects of social support and reduces anxiety and depression states under stressful circumstances, particularly in older women receiving orthopedic surgery. This evidence concerns the gene OXT and depressive disorder.