Non‐small cell lung cancer (NSCLC) is often complicated by pulmonary infection, which affects treatment and prognosis. Bacterial lipopolysaccharide (LPS) is an effective stimulator of inflammatory cytokine production, and previous studies have reported that LPS promotes tumor invasion and metastasis. Mangiferin is a plant‐derived C‐glucosylxanthone with many biological activities, such as antioxidation and anti‐inflammation. This research mainly explored the mechanism of its antitumor activities on LPS‐induced A549, NCI‐H460, and NCI‐H520 NSCLC cells. We determined that mangiferin exhibits growth inhibiting activity against LPS‐induced NSCLC cells through the 3‐(4, 5‐dimethylthiazol‐2‐yl)‐2, 5‐diphenyltetrazolium bromide (MTT) assay. In addition, mangiferin reversed the LPS‐induced downregulation of E‐cadherin (epithelial marker); conversely, it significantly inhibited the expression of raised vimentin (mesenchymal markers). Moreover, the ability of NSCLC cells to migrate, as evidenced by the wound healing and transwell migration assays, and the expression of CXCR4 increased by LPS were significantly repressed by mangiferin. In addition, mangiferin markedly mediated protein levels of PER1 and NLRP3 in LPS‐induced NSCLC cells and reduced the secretion of IL‐1β. These results indicate that mangiferin is not only a remarkable anti‐inflammatory compound but also an antitumor agent; thus, it has the potential for being developed into anti‐inflammatory and antitumor drugs in the future.