Bile in the stomach can be treated by taking medication. Under normal circumstances, bile will not appear in the stomach, but it may be due to various reasons that the pyloric sphincter of the stomach is dysfunctional and the mechanism is dysfunctional, which can cause the pyloric sphincter to close incompletely, resulting in the reflux of bile into the stomach. Bile is weakly alkaline, while gastric acid in the stomach is strongly acidic. The reflux of bile into the stomach damages the gastric mucosa and affects the digestive function of the stomach, and the patient may experience acid reflux, belching, fullness, and change in the shape of stool. Therefore, if there is bile in the stomach, patients need to seek medical advice and take medication under the guidance of doctors to promote the discharge of bile. In general, drugs that promote gastrointestinal motility, such as domperidone tablets and mosapride citrate tablets, can be taken orally, and drugs that inhibit gastric acid secretion and protect the gastric mucosa, such as omeprazole enteric tablets and pantoprazole sodium enteric tablets, as well as H2 receptor antagonists such as ranitidine hydrochloride capsules and cimetidine tablets, can also be added. If there are causes for the relaxation of pyloric sphincter function, such as H. pylori infection, quadruple therapy is needed to eradicate H. pylori, such as using lansoprazole + amoxicillin + metronidazole + bismuth potassium citrate, which can promote stomach digestion, induce bile discharge and protect the normal physiological function of the gastrointestinal mucosa during the course of drug treatment. During the treatment period, diet should be light and easy to digest, greasy food will promote bile secretion and cause bile reflux aggravation. You should also eat regularly, drink more water, avoid spicy and stimulating food, and do proper physical exercise to promote gastrointestinal tract peristalsis, which is beneficial to your health.