ERAP1-dependent trimming of epitope repertoire determines an efficacy of adoptive CD8+ T-cell responses in several viral diseases; however, its role in hepatitis B virus (HBV) infection remains unknown. Here, ERAP1 is linked to viral load.