In multivariable analysis; being female (AOR = 3.45, 95% CI; 1.52–7.79), viral loads ≥1000 copies (AOR = 6.88, 95% CI; 2.79–16.9), CD4 cell < 200 cells/mm3 (AOR = 6.85, 95% CI; 2.42–19.39), WHO T-stage II and III (AOR = 4.29, 95% CI; 1.05–17.53), having anxiety (AOR = 10, 95% CI; 4.21–23.9), having depression (AOR = 4.44, 95% CI; 1.95–10.10), having separate bedroom (AOR = 3.94, 95% CI; 1.86–8.36), and living alone (AOR = 6, 95% CI; 2.81–13.12) were determinant factors of poor sleep quality in PLWHIV (Table 4). The gene discussed is CD4; the disease is depressive disorder.