Barium contrast is a substance used in medical imaging to enhance the visibility of the gastrointestinal (GI) tract during X-ray examinations. It works by coating the lining of the GI tract, making it appear white on X-ray images, which helps in diagnosing conditions such as ulcers, tumors, and inflammation.