Tofacitinib is used to treat moderate to severely active rheumatoid arthritis, active psoriatic arthritis, ulcerative colitis, ankylosing spondylitis, and polyarticular course juvenile idiopathic arthritis (pcJIA) in patients who have taken other medicines.