Oligodendrocytes produce myelin, which provides insulation to axons and speeds up neuronal transmission. In ischaemic conditions, myelin is damaged, resulting in mental and physical disabilities. Recent evidence suggests that oligodendrocyte damage during ischaemia can be mediated by Transient Receptor Potential Ankyrin-1 (TRPA1), whose activation raises intracellular Ca2+ concentrations and damages compact myelin. Here, we show that TRPA1 is constitutively active in oligodendrocytes and the optic nerve, as the specific TRPA1 antagonist, A-967079, decreases basal oligodendrocyte Ca2+ concentrations and increases the size of the compound action potential (CAP). Conversely, TRPA1 agonists reduce the size of the optic nerve CAP in an A-967079-sensitive manner. These results indicate that glial TRPA1 regulates neuronal excitability in the white matter under physiological as well as pathological conditions. Importantly, we find that inhibition of TRPA1 prevents loss of CAPs during oxygen and glucose deprivation (OGD) and improves the recovery. TRPA1 block was effective when applied before, during, or after OGD, indicating that the TRPA1-mediated damage is occurring during both ischaemia and recovery, but importantly, that therapeutic intervention is possible after the ischaemic insult. These results indicate that TRPA1 has an important role in the brain, and that its block may be effective in treating many white matter diseases.