HLA class I variation has the strongest effect genome-wide on outcome after HIV infection, and as such, an understanding of the impact of HLA polymorphism on response to HIV vaccination may inform vaccine design. We sought HLA associations with HIV-directed immunogenicity in the phase 1/2a APPROACH vaccine trial, which tested vaccine regimens containing mosaic inserts in Ad26 and MVA vectors, with or without a trimeric gp140 protein. While there were no HLA allelic associations with the overall cellular immune response to the vaccine assessed by ELISpot (Gag, Pol, and Env combined), significant associations with differential response to Gag compared to Env antigens were observed. Notably, HLA class I alleles known to associate with disease susceptibility in HIV natural history cohorts are associated with stronger Env-directed responses, whereas protective alleles are associated with stronger Gag-directed responses. Mean viral loads determined for each HLA allele in untreated individuals correlated negatively with the strength of the Gag response minus the Env response in Black vaccinees based on both ELISpot and CD8+ T cell ICS responses. As the association of T cell responses to conserved Gag epitopes with lower viral load in untreated individuals is well established, our data raise the possibility that the Ad26.Mos.HIV vaccine may induce more effective cellular responses in those with HLA alleles that confer improved virologic control in untreated HIV infection.IMPORTANCENo vaccine tested to date has shown sufficient efficacy against HIV infection. A vaccine that induces robust responses in one individual may fail to do so in another individual due to variation in HLA class I genes, loci central to the immune response. Extensive data have shown the strong effect of HLA variation on outcome after HIV infection, but very little is known about the effect of such variation on HIV vaccine success. Here, we identify a link between the effect of HLA variation on HIV disease outcome and immune responses to an HIV vaccine. HLA variants associated with better HIV control after infection also induce stronger responses against the HIV Gag protein relative to the Env protein after vaccination. Given the virologic control conferred by responses to Gag in natural history of HIV infection, these data suggest that HLA alleles conferring protection after HIV infection may also support a more effective cellular response to HIV vaccination.