Objectives:Children with HIV may experience adverse neurocognitive outcomes despite antiretroviral therapy (ART). Cytomegalovirus (CMV) is common in children with HIV. Among children on ART, we examined the influences of early HIV viral load and CMV DNA on neurocognition.Design:We determined the association between pre-ART viral load, cumulative viral load, and CMV viremia and neurocognition using data from a cohort study.Methods:Children who initiated ART before 12 months of age were enrolled from 2007 to 2010 in Nairobi, Kenya. Blood was collected at enrollment and every 6 months thereafter. Four neurocognitive assessments with 12 domains were conducted when children were a median age of 7 years. Primary outcomes included cognitive ability, executive function, attention, and motor z scores. Generalized linear models were used to determine associations between HIV viral load (pre-ART and cumulative; N = 38) and peak CMV DNA (by 24 months of age; N = 20) and neurocognitive outcomes.Results:In adjusted models, higher peak CMV viremia by 24 months of age was associated with lower cognitive ability and motor z scores. Higher pre-ART HIV viral load was associated with lower executive function z scores. Among secondary outcomes, higher pre-ART viral load was associated with lower mean nonverbal and metacognition z scores.Conclusion:Higher pre-ART viral load and CMV DNA in infancy were associated with lower executive function, nonverbal and metacognition scores and cognitive ability and motor scores in childhood, respectively. These findings suggest long-term benefits of early HIV viral suppression and CMV control on neurocognition.