Background: Polymorphic gene loci in the major histocompatibility complex (HLA) are associated with better control of HIV in plasma of patients with European but not African ancestries. To determine whether HLA alleles influence HIV replication in the CNS, we compared cerebrospinal fluid (CSF) HIV with HLA genotypes. Methodology: HLA-C*-35 (rs9264942) and HLA-B*5701 (rs2395029) were identified using PCR in 564 blood DNA isolates from HIV-infected patients in the CHARTER cohort. HIV RNA log10 copy per ml was determined in plasma and CSF and differences in patients with versus without the two HLA polymorphisms were assessed using Fisher’s exact test, T test, or Wilcoxon rank sum test. Results: In 48 treatment naive European subjects the C allele of HLA-C*-35 was associated with lower HIV concentration in plasma (TT = 4.45 log c/ml, CT = 4.30 log c/ml, CC = 3.60 log c/ml, p = 0.034) but not in CSF (p = 0.61). In 205 Europeans on combination antiretroviral therapy (cART), HLA-C*-35 was not associated significantly with plasma or CSF HIV RNA concentration. In treatment naive Europeans the HLA-B*5701 analysis resembled the HLAC*-35 results for plasma (+ = 4.49 log c/ml, – = 3.19 log c/ml, p = 0.032) and CSF HIV (p = 0.20). Unexpectedly, in the 164 treated patients of African descent, those with the C allele of HLA-C*-35 had greater detection of HIV (worse HIV control) (plasma, 73% versus 38%, p = 0.012; CSF, 45% versus 19%, p = 0.017). The number of treated Africans that possessed an HLA-B*5701 allele was too small to yield a meaningful result. No association between HLA-C*-35 or HLA-B*5701 type and HIV RNA concentration in plasma or CSF was observed in 33 treatment naive patients of African ancestry. Conclusions: Plasma but not CSF HIV RNA concentration was lower in HLA-C*-35/C and HLA-B*5701/+ treatment naive patients of European descent. This effect was not seen in treated individuals, likely because the treatment effect overshadows the genetic effect. In contrast, treated patients of African descent with HLA-C*-35 C alleles had higher plasma and CSF HIV RNA concentrations. This association was not seen in the patients not on cART and suggests that those subjects are less likely to attain virologic suppression in plasma or CSF.