The NHS states that it is thought several things could play a role in causing the condition.
These include your genes, as you are more likely to get it if a close family member has it.
It may also be caused by a problem with the immune system that causes it to attack the digestive system.
Other causes may be smoking, a previous stomach bug or an abnormal balance of gut bacteria, says the health body.