Famotidine and rabeprazole both belong to the inhibition of gastric acid secretion of drugs, the difference between the two mainly lies in the different ways to play the role of acid suppression. Famotidine belongs to H₂ receptor antagonist, mainly through the inhibition of gastric wall cell H₂ receptor, so as to inhibit gastric acid secretion; rabeprazole belongs to the proton pump inhibitor, mainly through the irreversible covalent binding with the proton pump, so as to partially inactivate the proton pump, so that the gastric acid secretion is inhibited. 1. Famotidine: It is mainly used for the treatment of peptic ulcer, upper gastrointestinal bleeding caused by hemorrhagic gastritis, Zuo Ai syndrome, in addition to the prevention of upper gastrointestinal bleeding caused by invasive stress and the prevention of aspiration pneumonia before anesthesia. 2. Rabeprazole: It can be used for the treatment of peptic ulcer (including gastric ulcer, duodenal ulcer, anastomotic ulcer), gastroesophageal reflux disease, Zuo Ai syndrome and so on. Rabeprazole has a stronger and longer-lasting acid-suppressing effect. All of the above medications should be used under medical supervision and should not be used without authorization.