A thin layer of barium coats the esophagus when the liquid is swallowed. This makes the esophagus easier to see in x-ray images.