More PD1+ T cells and higher PD-L1 expression were observed in tumor tissues of ICC patients with HBV infection compared to patients with hepatolithiasis or undetermined risk factors. Here, CD274 is linked to intrahepatic cholangiocarcinoma.