While a definitive cause for UC is not clear, the condition may be due to genetics, smoking, a person's diet, and exposure to air pollution. For some people, a viral infection could also be a trigger.