Pharmacologic treatment of migraine is divided into attack treatment and prophylactic treatment. Therapeutic drugs include non-specific analgesics such as non-steroidal anti-inflammatory drugs, and specific drugs are mainly traptans. Drug selection should be individualized according to the degree of headache, concomitant symptoms and previous medication. Prophylactic treatment is suitable for: ① patients with frequent attacks, especially those with more than one attack per week that seriously affects daily life and work; ② those who are ineffective in acute treatment or cannot be treated in the acute phase due to side effects and contraindications; ③ special variant migraine that may lead to permanent neurological deficits. Drugs used clinically for prevention include: ① β-adrenergic receptor blockers, such as propranolol and metoprolol; ② calcium antagonists, such as flunarizine and verapamil; ③ antiepileptic drugs, such as valproic acid and topiramate; ④ antidepressants, such as amitriptyline and fluoxetine; ⑤ 5-HT receptor antagonists, such as phenothiazine. Therapeutic medications during the attack period include NSAIDs such as acetaminophen, naproxen and ibuprofen, which can be effective, and then migraine-specific medications if ineffective. The specific drugs are mainly trimiputant, and the commonly used drugs are sumatriptan, naratriptan, rizatriptan, zolmitriptan, and almotriptan.