The nanocomposite preparation procedure plays an important role in achieving a well-established heterostructured junction, and hence, an optimized photocatalytic activity. In this study, a series of g-C3N4/ZnO nanocomposites were prepared through two distinct procedures of a low-cost, environmentally-friendly, in-situ fabrication process, with urea and zinc acetate being the only precursor materials. The physicochemical properties of synthesized g-C3N4/ZnO composites were mainly characterized by XRD, UV–VIS diffuse reflectance spectroscopy (DRS), N2 adsorption-desorption, FTIR, TEM, and SEM. These nanocomposites’ photocatalytic properties were evaluated in methylene blue (MB) dye photodecomposition under UV and sunlight irradiation. Interestingly, compared with ZnO nanorods, g-C3N4/ZnO nanocomposites (x:1, obtained from urea and ZnO nanorods) exhibited weak photocatalytic activity likely due to a “shading effect”, while nanocomposites (x:1 CN, made from g-C3N4 and zinc acetate) showed enhanced photocatalytic activity that can be ascribed to the effective establishment of heterojunctions. A kinetics study showed that a maximum reaction rate constant of 0.1862 min-1 can be achieved under solar light illumination, which is three times higher than that of bare ZnO nanorods. The photocatalytic mechanism was revealed by determining reactive species through adding a series of scavengers. It suggested that reactive ∙O2− and h+ radicals played a major role in promoting dye photodegradation.