The application relates to the technical field of catalytic materials, and relates to an organic photocatalytic material and a preparation method thereof.1, comprising the following steps: mixing modified N-hydroxy
phthalimide phenylacetate, an aliphatic
nitroalkane, 2,6-dimethylpyridine, a photocatalyst and a
solvent, then irradiating under visible light, placing in an
inert atmosphere, stirring for 2-8 hours, and obtaining a product through post-treatment to obtain a final product; the
mass ratio of the modified N-hydroxy
phthalimide phenylacetate, the
nitro compound, the 2,6-dimethylpyridine, the photocatalyst and the
solvent is 2-5:1-2:1-3:1:8-11. The visible light
catalysis method can be used to synthesize the
nitro compound under mild conditions, and further provides a green and efficient new path for the preparation of a
nitrogen-containing
drug intermediate.