Polyoxometalate/g-C3N4composites were prepared with Keggin POMs and g-C3N4. POMs used as electron traps can efficiently promote the spatial separation of photogenerated electrons and holes of C3N4, which resulted in a high photocatalytic activity towards MO degradation.