Our stratified analysis revealed a significant association between sleep disorders (including insomnia, poor sleep quality, short sleep duration, and long sleep duration) and physical frailty in PWH with current CD4+ T-cell counts <350 cells/μL, but not in those with CD4+ T-cell counts ≥350 cells/μL. The gene discussed is CD4; the disease is sleep disorder.