Imitrex (sumatriptan) is used to treat migraine headaches and cluster headaches in adults. It works by narrowing blood vessels around the brain and reducing substances in the body that can trigger headache pain, nausea, sensitivity to light, and other migraine symptoms.