Gastritis is a very common digestive disease with a high incidence in the population and can be divided into acute gastritis and chronic gastritis. In patients with gastritis combined with pain in the upper right abdomen, the first consideration is whether the pain is due to sinusitis, which is caused by the location of the right upper abdomen. For this group of patients, it may be necessary to rule out other diseases, such as hepatobiliary system diseases, hepatitis, cholecystitis, gallbladder stones, etc., which may cause pain in the right upper abdomen, which can be clarified by relevant serological tests and ultrasound examination of the hepatobiliary system. If necessary, gastroscopy can be done to clarify whether there are duodenal lesions, such as duodenal ulcer, duodenal bulb ulcer, etc. Further treatment is based on the relevant examination results, mostly using some drugs to protect the gastric mucosa, inhibit gastric acid, and promote gastrointestinal motility. At the same time, if the pain caused by spasm is obvious, you can use some drugs to relieve the symptoms, pay attention to rest, improve the structure of life and diet, and maintain a good state of mind.