The g-C(3)N(4) photocatalyst was synthesized by directly heating the low-cost melamine. The methyl orange dye (MO) was selected as a photodegrading goal to evaluate the photocatalytic activity of as-prepared g-C(3)N(4). The comparison experiments indicate that the photocatalytic activity of g-C(3)N(4) can be largely improved by the Ag loading. The strong acid radical ion (SO(4)(2-) or NO(3)(-)) can promote the degrading rate of MO for g-C(3)N(4) photocatalysis system. The MO degradation over the g-C(3)N(4) is mainly attributed to the photoreduction process induced by the photogenerated electrons. Our results clearly indicate that the metal-free g-C(3)N(4) has good performance in photodegradation of organic pollutant.