The infiltration of macrophages increased, and the IRE1α/XBP1 pathway was activated in CRC cells after MC-LR exposure, influencing macrophage M2 polarization under co-culture conditions. The gene discussed is XBP1; the disease is colorectal carcinoma.