Zantac, or ranitidine, is an over the counter medication that is meant to treat and prevent heartburn. Given that it is an antihistamine and antacid, it can also treat stomach ulcers, gastroesophageal reflux disease, and any other conditions that cause too much stomach acid.