Huge demands for photocatalytically efficient visible-light-induced catalysts have spurred widespread interest in building adaptable heterojunctions. Here, we used in situ thermal polymerization to synthesise the Z-scheme Bi2O3/g-C3N4 heterojunction. The optical, structural, chemical, compositional and photocatalytic behaviours of the samples were analysed through various analytical techniques and photocatalytic methylene blue (MB) dye degradation reaction. Among the various ratios of Bi2O3/g-C3N4 heterojunction composites, the 1:1 ratio showed improved visible-light-induced catalytic activity, which attained 91.2% degradation efficiency after 120 min of visible-light exposure. The dye degradation efficiency was calculated under various environmental conditions by varying the dye concentration, solution pH and catalyst dosage. A improved Z-scheme photocatalytic mechanism was proposed in light of the results. A potential mechanism was suggested to explain the photocatalytic activity, and trapping experiments supported it. Last but not least, this strategy might be helpful to prepare the heterojunction photocatalyst for the degradation of organic pigments.