The HLA evolutionary divergence (HED), a continuous metric quantifying the peptidic differences between 2 homologous HLA alleles, reflects the breadth of the immunopeptidome presented to T lymphocytes. To assess the potential effect of donor or recipient HED on liver transplant rejection. Retrospective cohort study. Liver transplant units. 1154 adults and 113 children who had a liver transplant between 2004 and 2018. Liver biopsies were done 1, 2, 5, and 10 years after the transplant and in case of liver dysfunction. Donor-specific anti-HLA antibodies (DSAs) were measured in children at the time of biopsy. The HED was calculated using the physicochemical Grantham distance for class I (HLA-A or HLA-B) and class II (HLA-DRB1 or HLA-DQB1) alleles. The influence of HED on the incidence of liver lesions was analyzed through the inverse probability weighting approach based on covariate balancing, generalized propensity scores. In adults, class I HED of the donor was associated with acute rejection (hazard ratio [HR], 1.09 [95% CI, 1.03 to 1.16]), chronic rejection (HR, 1.20 [CI, 1.10 to 1.31]), and ductopenia of 50% or more (HR, 1.33 [CI, 1.09 to 1.62]) but not with other histologic lesions. In children, class I HED of the donor was also associated with acute rejection (HR, 1.16 [CI, 1.03 to 1.30]) independent of the presence of DSAs. There was no effect of either donor class II HED or recipient class I or class II HED on the incidence of liver lesions in adults and children. The DSAs were measured only in children. Class I HED of the donor predicts acute or chronic rejection of liver transplant. This novel and accessible prognostic marker could orientate donor selection and guide immunosuppression. Institut National de la Santé et de la Recherche Médicale.