The study was conducted on 2182 college students from China using questionnaires, and a structural equation model was established to test the mediating effects. The results showed that: firstly, resilience, self-regulated learning efficacy, self-control, cognitive reappraisal, and online learning emotional engagement were all significantly positively correlated with each other, while expressive suppression was significantly negatively correlated with resilience and self-control. Secondly, resilience can individually mediate online learning emotional engagement through self-regulated learning efficacy, self-control, and cognitive reappraisal. Additionally, it can indirectly predict emotional engagement in online learning by way of the chain mediating effect of self-regulated learning efficacy, self-control, and cognitive reappraisal, but the direct effect of resilience on online learning emotional engagement is not significant. Lastly, there are differences in the mediating effects between urban and rural areas.