In following sections, we describe how metformin regulates the interface of metabolism and immune function in the CD4 and CD8 T cells under the various diseases condition, such as virus infection, autoimmune diseases, aging and cancers. Here, CD4 is linked to cancer.