Sulfasalazine is a medication primarily used to treat inflammatory bowel diseases such as ulcerative colitis and Crohn's disease. It is also used in the management of juvenile idiopathic arthritis. Sulfasalazine is a combination of sulfapyridine and 5-aminosalicylic acid (5-ASA). It works by reducing inflammation in the colon and joints.