Sumatriptan tablets are a prescription medication commonly used for the treatment of migraines and cluster headaches. Sumatriptan belongs to a class of drugs called triptans, which work by constricting blood vessels and blocking pain signals in the brain.