The aim of this review is to illustrate the main pathogenetic mechanisms by which the immune system promotes the progression of MASLD and the transition to HCC, as well as to discuss the possible therapeutic applications of PD-1/PD-L1 target therapy to activate T cells and reinvigorate immune surveillance against cancer. The gene discussed is CD274; the disease is cancer.