•Trek1 and Trek2 invalidation increases TG excitability and generates migraine. Here, KCNK2 is linked to migraine disorder.