A barium enema is a diagnostic imaging procedure used to visualize the interior of the large intestine (colon and rectum). During the procedure, a contrast material called barium sulfate is introduced into the colon through the rectum. This substance coats the lining of the colon, making it visible on X-ray images.