RESUMEN
Background: Resilience can mitigate the negative impact produced by the COVID-19 pandemic. Medical students endure significant academic stress, so adjusting to sudden changes can present greater mental health challenges. The aim is to identify the level and prevalence of resilience and to know what are the educational variables and is sleep quality associated with resilience. Methods: A cross-sectional study was conducted using an online questionnaire. The survey was elaborated in Google Forms and shared through social networks. The outcome was resilience, measured with the Connor Davidson Resilience Scale. Its association was assessed with sleep quality (measured with the Pittsburgh Sleep Quality Index), daytime sleepiness (measured with the Epworth Sleepiness Scale), and selected academic/sociodemographic variables. Generalized linear models were used to identify the association between the variables. Results: Of 1277 participants, 35.7% experienced high resilience. Poor sleep quality and sleepiness were present in 88.4% and 36.0% of students, respectively. High resilience was associated with good sleep quality (PR:1.56; 95%CI: 1.34 - 1.83; p-value<0.001), absent sleepiness (PR:1.59; 95%CI: 1.32-1.91; p-value<0.001), male sex (PR: 1.21; 95%CI: 1.05-1.39; p-value 0.006), working (PR:1.14), having family responsibilities (PR: 1.36; 95%CI: 1.09-1.70; p-value 0.005) and spending more than 6 hours studying (PR: 1.35; 95%CI: 1.17-1.54; p-value<0.001). Conclusion: 4 out of 10 students presented high levels of resilience. The development of resilience depended on multiple individual and sociodemographic factors. These findings are important to support universities in developing resilience-building measures and strategies that can be implemented to mitigate the adverse pandemic event.