Doctors don't know exactly what causes ulcerative colitis, but some researchers think it might be related to problems with your immune system -- your body's defense against germs. An infection with a virus or bacteria in your colon may trigger the inflammation that's linked with the disease.