The HLA system is critical in shaping the immune response to infectious diseases. Different HLA alleles can affect the presentation of pathogen-derived peptides to T cells, influencing susceptibility and resistance to infections like HIV, hepatitis, and malaria. Epidemiological studies of HLA alleles in populations can reveal patterns of disease spread and inform vaccine design.