A connection between diet and the precise cause of ulcerative colitis has not been detected. However, certain dietary factors have been associated with a greater risk of developing the disease. Such factors often include foods high in refined carbs, fats, and sugar and diets insufficient in fruits, veggies, and fiber.