Imitrex is used to treat migraine headache attacks once they occur. Imitrex is not effective in preventing migraines. Imitrex is not to be used for other types of headaches.