Nanosized C3N4/BiOCl composites were synthesized via a facile method in the presence of arabic gum. Arabic gum acts as the structure-directing agent and helps the formation of BiOCl nanoparticles. A significant enhanced photodegradation is observed and a possible mechanism is proposed by combining photosensitization and photocatalysis.