In conclusion, our results suggested dioscin elicits anti‐tumour immunity by inhibiting macrophage M2 polarization through JNK and STAT3 pathways in lung cancer. The gene discussed is MAPK8; the disease is lung cancer.