To investigate the effect of sleep disorders on hypertension in oil workers and its mediating effect analysis. Between June and September 2019, 1420 workers aged 20-60 years(745 males and 675 females; 384 aged 30 years, 563 aged 30-45 years and 473 aged 45 years) from six oilfield bases in Karamay City, Xinjiang Uygur Autonomous Region were surveyed using a two-stage randomized whole-group sampling method. Their current conditions, and the information on gender, age, ethnicity, personal monthly income, education level, job title, smoking, alcohol consumption, height, weight, and shift work of the oil workers were investigated by the basic questionnaire. The Pittsburgh Sleep Index was used to assess the sleep status, and the Logistic regression model was used to analyze the influencing factors of hypertension, and the Process program(version 3.3) was used to conduct the mediating effect model test. (1) The detection rate of sleep disorders was 52.5% and the prevalence of hypertension was 16.3%, with 21.6%(161) higher in women than 10.5%(71) in men(χ~2=31.877, P& lt; 0.001). The prevalence of hypertension increased with increasing age and body mass index(BMI)(χ~2=25.117, P& lt; 0.001), 20.1%(149) in the sleep disorder group were higher than 12.2%(83) in the non-sleep disorder group(χ~2=16.113, P& lt; 0.001). (2) After adjusting for gender, age, ethnicity, education, personal monthly income, smoking, alcohol consumption, shift work and BMI, sleep disorders(OR=1.686, 95% CI 1.232-2.308), gender(OR=1.565, 95% CI 1.035-2.367), age(OR_(30-45)=1.710, 95% CI 1.085-2.697; OR_(& gt; 45)=1.717, 95% CI 1.055-2.797), shift work(OR=2.698, 95% CI 1.889-3.855), BMI(OR_(24.0-27.9)=2.557, 95% CI 1.736-3.765; OR_(≥28.0)=4.001, 95% CI 2.553-6.318) increased the risk of hypertension. (3) The result of stratified analysis showed that with age(OR_(30-45)=1.642, 95% CI 1.019-2.645; OR_(& gt; 45)=1.998, 95% CI 1.223-3.263) and BMI(OR_(24.0-27.9)=1.652, 95% CI 1.079-2.528; OR_(≥28.0)=2.259, 95% CI 1.165-4.381) increased, the risk of hypertension due to sleep disorders increased. Sleep disorders(OR=2.002, 95% CI 1.336-2.936) were also risk factors for hypertension in the shift work group. (4) The result of the mediating effect test showed that there was a mediating effect(P& lt; 0.05) between sleep disorders in age(β=0.240, Z=2.239), shift work(β=0.656, Z=3.999), and BMI(β=0.516, Z=7.258) and hypertension. Sleep disorders may be a risk factor affecting hypertension in oil workers in Karamay City, and there were mediating effects between age, shift work, and BMI and hypertension.