Loss of Ninj2 inhibits oligodendrocyte development and myelination by inducing TNFα‐mediated necroptosis, impairs neuron functions, and results in depression. Here, TNF is linked to major depressive disorder.