Antacids are over-the-counter medications that neutralize stomach acid, providing temporary relief from heartburn.