No special ulcerative colitis diet has been proven effective at preventing or treating this condition; however, some people find that avoiding dairy products, spicy foods, chocolate, and other foods can greatly reduce their symptoms. Everyone is different, however -- and the foods that aggravate someone else's symptoms may not affect yours.
If you have ulcerative colitis, it's important to take an active role in determining which foods make your symptoms worse. Then, avoid those foods as much as possible.