Leflunomide is used to relieve symptoms caused by active rheumatoid arthritis, such as inflammation, swelling, stiffness, and joint pain. This medicine works by stopping the body from producing too many of the immune cells that are responsible for the swelling and inflammation.