Here, W(NxS1−x)2 nanoflowers were fabricated by simple sintering process. Photocatalytic activity results indicated our fabricated N-doped WS2 nanoflowers shown outstanding photoactivity of degradating of rhodamine B with visible light. Which is attributed to the high separation efficiency of photoinduced electron–hole pairs, the broadening of the valence band (VB), and the narrowing of energy band gap. Meanwhile, our work provided a novel method to induce surface sulfur vacancies in crystals by introduing impurities atoms for enhancing their photodegradation.