Using a representative sample of migrant workers, this study elucidated the potential of GRRs and the mediating effect of SOC on the relationship between depression and GRRs by establishing pathways to better well-being. Here, UBXN11 is linked to major depressive disorder.