To conclude, our study reveals that MDZ inhibits HCC tumour growth by moderating the NF-κB pathway and alleviating the exhaustion of CD8+ T cells. Here, CD8A is linked to hepatocellular carcinoma.