Herein, we found that the DC mechanical sensor Piezo1 stimulated by mechanical stiffness or inflammatory signals directs the reciprocal differentiation of TH1 and regulatory T (Treg) cells in cancer. This evidence concerns the gene PIEZO1 and cancer.