It can be difficult to stop a migraine once it has started. You may be able to shorten a migraine attack by taking migraine medication as soon as symptoms start. Resting in a quiet, dark room can help to reduce sensitivity to light and sound.