Tofacitinib is used for the treatment of some types of arthritis and inflammation of the large intestine. Tofacitinib works by suppressing the immune system to help reduce inflammation and improve the symptoms of joint pain and swelling. Tofacitinib does not work immediately and may take weeks to months before you notice any improvement in symptoms.