Treatment of migraine and headaches can be performed by the use of potassium channel blockers. The potassium channel blockers block KATp channels and/or BK channels. Also disclosed are the potassium channel blockers in the manufacture of a medicament for the treatment of migraine or headache. In respect of the KATP channels the potassium channel blocker may blocks channels with SUR2B subunits e.g. channels with SUR2B and Kir6.1 subunits. In respect of BKGa channels, any of the a- or ß-subunits of the channels may be blocked by a potassium channel blocke in the treatment of migraine and headaches.