BackgroundSleep is a universal need of all higher life forms, including humans. However, sleep problems are one of the most common problems raised by patients living with human immunodeficiency virus/acquired immunodeficiency syndrome (HIV/AIDS). Poor sleep quality is one of the hidden and unrecognized factors contributing to poor medication adherence and functional inactivity among people living with human immunodeficiency virus/acquired immunodeficiency syndrome.MethodsA hospital-based cross-sectional study was conducted from April 15, 2022, to May 30, 2022, at an antiretroviral therapy (ART) clinic of Tirunesh Beijing Hospital. A systematic sampling technique was used to select study participants. A total of 413 people who are living with human immunodeficiency virus/acquired immunodeficiency syndrome were enrolled in the study. Data were collected through interviews when study participants finished their visit. Variables whosePvalue was less than 0.2 in bivariable logistic regression were entered into multivariable binary logistic regression to identify factors associated with poor sleep quality.ResultThe level of poor sleep quality among people living with HIV/AIDS was 73.7%. People living with HIV/AIDS who had poor sleep hygiene were 2.5 times more likely to have poor sleep quality compared with those patients who had good sleep hygiene. Moreover, study participants who had anxiety were three times more likely to have poor sleep quality compared with those who did not have anxiety (AOR: 3.09; 95% CI = 1.61–5.89). Study participants who had chronic diseases in addition to HIV/AIDS were 3 times more likely to have poor sleep quality compared with those who do not have it (AOR: 2.99; 95% CI = 1.15–7.79). Additionally, people living with HIV/AIDS who were stigmatized due to their disease were 2.5 times more likely to have poor sleep quality compared with their counterparts (AOR = 2.49; 95% CI = 1.43–4.21).ConclusionIn this study, the magnitude of poor sleep quality among people living with HIV/AIDS was high. Being a farmer, being a merchant, having chronic diseases, having anxiety, having a CD4 count of 200–499 cells/mm3, being stigmatized, and having poor sleep hygiene were factors that had an association with poor sleep quality. Healthcare providers should screen people living with HIV/AIDS for anxiety and encourage them to practice good sleep hygiene during follow-up.