Although snoring is common in the general population, its aetiology has been largely understudied. Here we report a genetic study on snoring (n ~ 408,000; snorers ~ 152,000) using data from the UK Biobank. We identify 42 genome-wide significant loci, with an SNP-based heritability estimate of ~10% on the liability scale. Genetic correlations with body mass index, alcohol intake, smoking, schizophrenia, anorexia nervosa and neuroticism are observed. Gene-based associations identify 173 genes, including DLEU7, MSRB3 and POC5, highlighting genes expressed in the brain, cerebellum, lungs, blood and oesophagus. We use polygenic scores (PGS) to predict recent snoring and probable obstructive sleep apnoea (OSA) in an independent Australian sample (n ~ 8000). Mendelian randomization analyses suggest a potential causal relationship between high BMI and snoring. Altogether, our results uncover insights into the aetiology of snoring as a complex sleep-related trait and its role in health and disease beyond it being a cardinal symptom of OSA.