To Analysis of the mediation effects of adverse mental health outcomes in HIV-infected women of childbearing age from multiple perspectives including discrimination perception, social capital, and other factors. A cross-sectional survey was conducted among 553 people in Xinjiang region of China using Survey scale. AMOS was used to identify factors that influenced the "discrimination perception/mental resilience/social capital-depression-poor mental health outcomes" pathway. A total of 44.85% and 42.13% of the study participants had anxiety and depression symptoms, as perceived discrimination increased, the higher the level of depression in HIV-infected women of childbearing age. Correlation coefficient among depression with poor mental health outcomes was also significant. Psychological resilience, social capital and depression have mediating effects on perceived discrimination and poor mental health outcomes, discrimination perception had an indirect effect on depression through social capital and an indirect effect on adverse mental health outcomes through depression and psychological resilience. The modified model has a good fitting effect. Discrimination perception was shown to affect adverse mental health outcomes by impacting mental resilience, depression, and social capital. The findings suggest the need for measures to reduce adverse mental health outcomes by decreasing discrimination perception, increasing social capital, and enhancing psychological resilience.