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. This evidence concerns the gene CD4 and insomnia.