Ranitidine is an H2 antagonist competitively inhibits histamine at the parietal cell H2 receptor. It suppresses the normal secretion of acid by parietal cells and the meal-stimulated secretion of acid. This is accomplished by two mechanisms: histamine released by ECL cells in the stomach is blocked from binding on parietal cell H2 receptors which stimulate acid secretion, and other substances that promote acid secretion (such as gastrin and acetylcholine) have a reduced effect on parietal cells when the H2 receptors are blocked.
References