Work stress has been found to be associated with sleep quality in various occupational groups, and genetic factors such as variable number tandem repeat polymorphism in the Period3 (Per3) gene also influence the circadian sleep-wake process. Therefore, the present study aimed to evaluate the sleep quality status of non-manual workers in Xinjiang, China and to analyse the effects of work stress and Per3 gene polymorphism and their interaction on sleep quality. A cluster sampling method was used to randomly select 1700 non-manual workers in Urumqi, Xinjiang. The work stress and sleep quality of these workers were evaluated using the Effort–Reward Imbalance Inventory (ERI) and the Pittsburgh Sleep Quality Index (PSQI). Next, 20% of the questionnaire respondents were randomly selected for genetic polymorphism analysis. The polymerase chain reaction-restriction fragment length polymorphism technique was used to determine Per3 gene polymorphism. The detection rate of sleep quality problems differed between the different work stress groups (p < 0.05), suggesting that non-manual workers with high levels of work stress are more likely to have sleep quality problems. Regression analysis revealed that the Per3 gene (OR = 3.315, 95% CI: 1.672–6.574) was the influencing factor for poor sleep quality after adjusting for confounding factors, such as occupation, length of service, education, and monthly income. Interaction analysis showed that Per34/5,5/5 × high work stress (OR = 2.511, 95% CI: 1.635–3.855) had a higher risk of developing sleep quality problems as compared to Per34/4 × low work stress after adjusting for confounding factors. The structural equation modelling showed no mediating effect between work stress and Per3 gene polymorphism. The results of this study show that both work stress and Per3 gene polymorphism independently affect sleep quality of nonmanual workers from Xinjiang, and the interaction between these two factors may increase the risk of sleep quality problems. Therefore, to improve sleep quality, individuals with genetic susceptibility should avoid or reduce as much as possible self-stimulation by work-related exposures such as high levels of external work stress.