Gastric ulcer is a common gastrointestinal disease, and with effective treatment, most patients can recover in 6-8 weeks, and the recovery time may be relatively longer in some severe cases. Treatment of gastric ulcer requires removing the cause, controlling symptoms, promoting ulcer healing, preventing recurrence, and avoiding complications. Patients should get proper rest, reduce stress, improve eating patterns, and stop taking unnecessary NSAIDs. Those with H. pylori infection should be actively treated for eradication and, depending on the situation, inhibit gastric acid secretion and protect the gastric mucosa. Most patients can discontinue the medication after cure, but for those with multiple recurrences, further investigation for the presence of other causes is required along with removal of common causes, and maintenance treatment is given. The course of treatment for gastric ulcers usually varies from person to person, with most patients recovering in 3-6 months, but some patients may take 1-2 years or more to recover if the disease is more severe, and some patients may also require surgery. During treatment, patients with gastric ulcer must pay attention to a light, regular diet and eat less spicy, fried and other irritating foods.