A barium enema is a diagnostic procedure that involves taking an X-ray of the digestive tract. This procedure involves placing a liquid called barium in the colon (through the anus) to help illuminate the digestive tract and create a better image. This image is then used by the doctor to locate blockages that may be causing medical concerns.