Background: The 2019 coronavirus disease (COVID-19) has spread worldwide, and its associated stressors have resulted in decreased sleep quality among front-line workers. However, in China, the general public displayed more psychological problems than the front-line workers during the pandemic. Therefore, we investigated the influence of perceived stress on the sleep quality of the non-diseased general public and developed a moderated mediation model to explain said relationship. Methods: Questionnaire-based surveys were conducted online from February 18e25, 2020 with 1630 Chinese participants (aged 18e68 years). Results: Around one-third (36.38%) of participants were poor sleepers during the COVID-19 pandemic. Moreover, higher perceived stress was significantly associated with higher anxiety levels, which, in turn, was associated with lower sleep quality. Self-esteem moderated the indirect effect of perceived stress on sleep quality through its moderation of the effect of perceived stress on anxiety. This indicated that the mediation effect of anxiety was stronger in those with low levels of self-esteem than in those with high levels of self-esteem. Conclusions: These findings suggest that both the sleep quality and perceived stress levels of the nondiseased general public required attention during the COVID-19 pandemic. Our findings also identify personality characteristics related to better sleep quality, demonstrating the important role of selfesteem in environmental adaptation.