The exact cause of ulcerative colitis is unknown, but it is believed to result from an inappropriate immune response to intestinal flora in genetically susceptible individuals. Factors that may contribute to the development of UC include genetic predisposition, environmental triggers, and alterations in the gut microbiome.