There is no single "best" medicine, as the right treatment depends on the severity and frequency of your headaches. For mild attacks, over-the-counter pain relievers like ibuprofen or acetaminophen can help. For moderate to severe migraines, prescription medications called triptans (such as sumatriptan) are highly effective when taken early. If you experience frequent migraines, your doctor may recommend daily preventive medications like topiramate or beta-blockers. I encourage you to consult a healthcare provider to create a safe, personalized treatment plan that works best for you.