The genetic basis of amyotrophic lateral sclerosis (ALS) is still incompletely understood. Using two independent genetic strategies, we show here that a large part of ALS heritability lies in genes expressed in inhibitory and excitatory neurons, especially at splicing sites regulated by a defined set of RNA binding proteins including TDP-43 and FUS. We conducted a transcriptome wide association study (TWAS) and identified 59 loci associated with ALS, including 14 previously identified genes, some of them not previously reaching significance in genome wide association studies. Among the 45 novel genes, several genes are involved in pathways known to be affected in ALS such as mitochondrial metabolism (including ATP5H, ATP5D, BCS1L), proteostasis (including COPS7A, G2E3, TMEM175, USP35) or gene expression and RNA metabolism (including ARID1B, ATXN3, PTBP2, TAF10). Interestingly, decreased expression of NUP50, a constrained gene encoding a nuclear pore basket protein, was associated with ALS in TWAS (Zscore = -4, FDR = 0.034). 11 potentially pathogenic variants (CADD score > 20) in 23 patients were identified in the NUP50 gene, most of them in the region of the protein mediating interaction with Importin alpha, and including 2 frameshift mutations. In cells from two patients carrying NUP50 variants, we showed decreased levels of NUP50 protein. Importantly, knocking down Nup50 led to increased neuronal death associated with p62 and nucleoporin inclusions in cultured neurons, and motor defects in Drosophila and zebrafish models. In all, our study identifies alterations in splicing in neurons as a critical pathogenic process in ALS, uncovers several new loci potentially contributing to ALS missing heritability, and provides genetic evidence linking nuclear pore defects to ALS.