Objective: Depression is a leading cause of disability globally and affects more women than men. Ovarian sex steroids are thought to modify depression risk in women and interventions such as bilateral oophorectomy that permanently change the sex steroid milieu may increase the risk of depression. This study aimed to investigate the associations between unilateral and bilateral oophorectomy and depression over a 25-year period (1993-2018) and whether this varied by age at oophorectomy or use of menopausal hormone therapy.Methods: Twenty-five thousand one hundred eighty-eight nurses aged !45 years from the Danish Nurse Cohort were included. Nurses with depression prior to baseline were excluded. Poisson regression models, with logtransformed person-years as offset, were used to assess the associations between oophorectomy and incident depression. Nurses who retained their ovaries were the reference group.Results: Compared with nurses with retained ovaries, bilateral oophorectomy was associated with a slightly higher rate of depression (rate ratio [RR], 1.08; 95% confidence interval [CI], 0.95-1.23), but without statistical significance. However, when stratified by age at oophorectomy, compared with nurses with retained ovaries, bilateral oophorectomy at age !51 years was associated with higher rates of depression (RR 1.16; 95% CI, 1.00-1.34), but not bilateral oophorectomy at age <51 years (RR 0.86; 95% CI, 0.69-1.07); P value for difference in estimates ¼ 0.02. No association between unilateral oophorectomy and depression was observed.Conclusions: In this cohort of Danish female nurses, bilateral oophorectomy at age !51 years, but not at younger ages, was associated with a slightly higher rate of depression compared with those who retained their ovaries.