Ulcerative colitis can affect people of any age, but it often begins during adolescence or early adulthood. It appears to have a genetic component, as individuals with a family history of the disease are at a higher risk. Other factors such as environmental triggers and an overactive immune response may also contribute to its development.