The invention discloses an alimentary canal contrast agent capable of relieving gastrointestinal spasm. The alimentary canal contrast agent comprises the following ingredients: 85 parts of a dry barium sulfate suspension or a compound meglumine diatrizoate contrast agent, and 15 parts of traditional Chinese medicine extracts, wherein the traditional Chinese medicine extracts are prepared from the following active pharmaceutical ingredients: 35 parts of verbena, 25 parts of galangal, 35 parts of Chinese angelica, 35 parts of poria cocos, 25 parts of radix aucklandiae, 35 parts of immature bitter orange, 25 parts of fructus alpiniae oxyphyllae, 35 parts of scorched hawthorn fruit, 15 parts of balm, 15 parts of dried orange peel, 25 parts of Chinese yam, 15 parts of mint, and 25 parts of liquorice. The alimentary canal contrast agent can be used for accurate diagnosis of gastrointestinal diseases such as gastritis, gastric ulcer, gastric cancer, and duodenal bulbar ulcer, and has the efficacies of warming spleen and stomach for dispelling cold, promoting qi circulation to relieve pain, dredging the channel, promoting qi and blood circulation and the like, thereby having a conditioning effect on the stomach and intestines.