Loneliness and social isolation are detrimental to mental health and may lead to cognitive impairment and neurodegeneration. Although several molecular signatures of loneliness have been identified, the molecular mechanisms by which loneliness impacts the brain remain elusive. Here, we performed a bioinformatics approach to untangle the molecular underpinnings associated with loneliness. Co-expression network analysis identified molecular ‘switches’ responsible for dramatic transcriptional changes in the nucleus accumbens of individuals with known loneliness. Loneliness-related switch genes were enriched in cell cycle, cancer, TGF-β, FOXO, and PI3K-AKT signaling pathways. Analysis stratified by sex identified switch genes in males with chronic loneliness. Male-specific switch genes were enriched in infection, innate immunity, and cancer-related pathways. Correlation analysis revealed that loneliness-related switch genes significantly overlapped with 82% and 68% of human studies on Alzheimer’s (AD) and Parkinson’s diseases (PD), respectively, in gene expression databases. Loneliness-related switch genes, BCAM, NECTIN2, NPAS3, RBM38, PELI1, DPP10, and ASGR2, have been identified as genetic risk factors for AD. Likewise, switch genes HLA-DRB5, ALDOA, and GPNMB are known genetic loci in PD. Similarly, loneliness-related switch genes overlapped in 70% and 64% of human studies on major depressive disorder and schizophrenia, respectively. Nine switch genes, HLA-DRB5, ARHGAP15, COL4A1, RBM38, DMD, LGALS3BP, WSCD2, CYTH4, and CNTRL, overlapped with known genetic variants in depression. Seven switch genes, NPAS3, ARHGAP15, LGALS3BP, DPP10, SMYD3, CPXCR1, and HLA-DRB5 were associated with known risk factors for schizophrenia. Collectively, we identified molecular determinants of loneliness and dysregulated pathways in the brain of non-demented adults. The association of switch genes with known risk factors for neuropsychiatric and neurodegenerative diseases provides a molecular explanation for the observed prevalence of these diseases among lonely individuals.