Ranitidine is a type of medicine called an H2 receptor antagonist or H2 blocker. H2 receptors are found on the cells in the stomach lining. A natural body chemical called histamine normally acts on these receptors, causing them to produce stomach acid to help digest food.