It is done to help tell inflammatory bowel disease apart from non-inflammatory causes of gut symptoms, investigate long-lasting diarrhoea or abdominal pain, monitor known inflammatory bowel disease and its response to treatment, and decide whether further tests is required.