In all three cholangiocarcinoma subtypes, T regulator cells are significantly associated with a poor prognosis; however, M1 and M2 tumor-associated macrophages or PD-L1+ tumor-associated macrophage demonstrate different prognostic values. Here, CD274 is linked to cholangiocarcinoma.