The invention is suitable for the technical field of photosensitizers, and provides a photosensitizer and a preparation method thereof. The structural general formula of the photosensitizer is shown in the specification, wherein R1 is one or more of substituent groups containing sulfur / oxygen / nitrogen heteroatoms of aromatic hydrocarbon with 1-10 hydrogen and carbon atoms; r2 is one or more of hydrogen, methyl, propyl, isopropyl, n-butyl, tertiary butyl, methoxyl, ethyoxyl, propoxy, isopropoxy, isobutoxy or fluorine, bromine and iodine; r3 is one or more of hydrogen, aromatic hydrocarbon of alkane with the carbon atom number of 1-10 or substituent groups containing sulfur / oxygen / nitrogen heteroatoms; r4 is one or more of hydrogen, aromatic hydrocarbon of alkane with the carbon atom number of 1-10 or substituent groups containing sulfur / oxygen / nitrogen heteroatoms. According to the photosensitizer and the preparation method thereof, the diffusion range can be effectively controlled, the photoresist has better morphology and line width roughness, defects are reduced, meanwhile, the preparation method provided by the invention is simple in step, and various photosensitizers can be prepared.