Generic Maxalt is used for treating acute migraine headache with or without aura (flashing lights, wavy lines, dark spots) in adults. It should not be used to prevent migraines or cluster headaches. It works by narrowing dilated blood vessels in the brain, relieving migraine headaches.