we report here a new method for the preparation of 2-phenyl-2H-indazole derivatives by condensation of substituted o-bromobenzaldehyde with aniline derivatives and photocatalytic in the presented sodium azide in visible-light photoredox-catalyzed nitrogen radical cyclization.