Genome-wide association study (GWAS)-based pathway association analysis is a powerful approach for the genetic studies of human complex diseases. However, the genetic confounding effects of environment exposure-related genes can decrease the accuracy of GWAS-based pathway association analysis of target diseases. In this study, we developed a pathway association analysis approach, named Mendelian randomization-based pathway enrichment analysis (MRPEA), which was capable of correcting the genetic confounding effects of environmental exposures, using the GWAS summary data of environmental exposures. After analyzing the real GWAS summary data of cardiovascular disease and cigarette smoking, we observed significantly improved performance of MRPEA compared with traditional pathway association analysis (TPAA) without adjusting for environmental exposures. Further, simulation studies found that MRPEA generally outperformed TPAA under various scenarios. We hope that MRPEA could help to fill the gap of TPAA and identify novel causal pathways for complex diseases.