Varicella-zoster virus can cause two distinct diseases: chickenpox (varicella) and shingles (herpes zoster). Varicella is a common disease in young children, while herpes zoster is more frequent in older individuals. A common complication of herpes zoster is postherpetic neuralgia, a persistent and debilitating pain that can remain months up to years after the resolution of the rash. In this study, we show that the relative affinity of HLA variants associated with higher postherpetic neuralgia risk for varicella-zoster virus peptides is lower than that of variants with a lower risk. These results provide new insight into the development of postherpetic neuralgia and strongly support the hypothesis that one of its possible underlying causes is a suboptimal anti-VZV immune response due to weak HLA binding peptide affinity.