Migraine with aura is a subtype of migraine characterized by transient neurological disturbances that usually precede headache. Cortical spreading depression (CSD) is the likely pathophysiological correlate of the aura phase of migraine, found in common and rare forms of migraine, such as familial hemiplegic migraine. CSD is a depolarization wave that propagates across the cerebral gray matter transiently suppressing neuronal activity. Prophylactic treatments for migraine, such as topiramate or valproate, reduce the number of CSD events. We evaluated changes in gene expression in rat cortex and brainstem after inducing CSD in the cortex, with and without a prophylactic treatment with topiramate or valproate. CSD induction showed similar transcriptomic profiles with and without treatment in cortex, involving genes related to hormone stimulus, apoptosis, synaptic transmission, and interleukin signaling. In brainstem, CSD with and without treatment, although to a lesser extent, also induced gene expression changes involving genes related to apoptosis. Half of the genes altered in brainstem after CSD were also differentially expressed in the same direction in cortex. No differences in gene expression were identified after CSD as a consequence of the treatments, neither in cortex nor in brainstem. Perspective: Our results suggest that early after triggering the CSD, similar consequences are seen at the genetic level with or without prophylactic treatment. Gene expression changes induced by CSD in cortex and brainstem may help to better understand the underlying mechanisms and identify targets for therapeutic approaches. (C) 2016 by the American Pain Society