Parkinson's disease and inflammatory bowel disease have been increasingly associated, implying shared pathophysiology. To explore biological explanations for the reported connection, we leveraged summary statistics of updated genome-wide association studies and characterized the genetic overlap between the two diseases. Aggregated genetic association data were available for 37 688 cases versus 981 372 controls for Parkinson's disease and 25 042 cases versus 34 915 controls for inflammatory bowel disease. Genetic correlation was estimated with the high-definition likelihood method. Genetic variants with joint association to both diseases were identified by conditional false discovery rate framework and further annotated to reveal shared loci, genes, and enriched pathways. For both Crohn's disease and ulcerative colitis, the two main subtypes of inflammatory bowel disease, we detected weak but statistically significant genetic correlations with Parkinson's disease (Crohn's disease: rg = 0.06, P = 0.01; ulcerative colitis: rg = 0.06, P = 0.03). A total of 1290 variants in 27 independent genomic loci were detected to associate with Parkinson's disease and Crohn's disease at conjunctional false discovery rate under 0.01 and 1359 variants in 15 loci were pleiotropic to Parkinson's disease and ulcerative colitis. Among the identified pleiotropic loci, 23 are novel and have never been associated with both phenotypes. A mixture of loci conferring either same or opposing genetic effects on two phenotypes was also observed. Positional and expression quantitative trait loci mapping prioritized 296 and 253 genes for Parkinson's disease with Crohn's disease and ulcerative colitis, respectively, among which only <10% are differentially expressed in both colon and substantia nigra. These genes were identified to overrepresent in pathways regulating gene expression and post-translational modification beyond several immune-related pathways enriched by major histocompatibility complex genes. In conclusion, we found robust evidence for a genetic link between Parkinson's disease and inflammatory bowel disease. The identified genetic overlap is complex at the locus and gene levels, indicating the presence of both synergistic and antagonistic pleiotropy. At the functional level, our findings implied a role of immune-centered mechanisms in the reported gut-brain connection.