Tofacitinib is a Janus kinase (JAK) inhibitor that modulates the activity of the immune system. By inhibiting JAK enzymes, tofacitinib reduces the production of pro-inflammatory cytokines, thereby decreasing inflammation associated with various autoimmune conditions.