LXN deficiency remodels immune microenvironment by increasing PD-L2+ macrophages and reducing T cells infiltration in colorectal cancer tissues in vivo. Here, PDCD1LG2 is linked to colorectal cancer.