Mesalamine, also known as 5-aminosalicylic acid (5-ASA), is a medication used to treat inflammatory bowel diseases (IBD) such as ulcerative colitis and Crohn's disease. It belongs to the class of drugs known as aminosalicylates, and it works locally in the gastrointestinal tract to reduce inflammation and alleviate symptoms associated with IBD.