Your risk of developing ulcerative colitis is higher if a close family member has it. But having a family member with ulcerative colitis doesn’t mean you’ll definitely get it. Ulcerative colitis is likely to be caused by a combination of things, and genetics is just one potential cause.
For more information, see our section on causes of ulcerative colitis.