Famotidine (Pepcid) is a type of antihistamine that blocks the release of stomach acid. It is used to treat stomach or intestinal ulcers. It can also relieve heartburn from acid reflux. It is more popular than comparable drugs. It is available in generic and brand versions.