Colitis is when a part of your colon becomes inflamed or swollen. Colitis can be caused by infections, certain medicines, and inflammatory bowel disease.