A novel organic-inorganic three-dimensional (3D) mesoporous graphite carbon nitride/BiOI (MCN/BiOI) heterojunction photocatalyst with excellent visible-light-driven photocatalytic performance was synthesized by a facile solvothermal method and used for degradation of bisphenol A (BPA) in water. After hybridization with MCN, a heterojunction was formed and the photogenerated carriers could be effectively separated by the internal electric field built at the heterojunction interface. The photocatalytic and photoelectrochemical performance of BiOI were improved and much higher than pure BiOI and MCN. The best photocatalytic performance was achieved with MCN proportion of 10%, and the kobs was approximately 1.6 times of pure BiOI and 3.4 times of MCN under simulated solar light irradiation, respectively. The photocurrent intensity generated by 10%-MCN/BiOI electrode was about 1.5 and 2.0 times of those induced by BiOI and MCN under visible-light irradiation, respectively. The superoxide radical species were predominant in the reaction system.