The invention discloses a photosensitizer with a high yield rate of singlet oxygen and a preparation method thereof. The Suzuki coupling reaction is adopted to synthesize 4,8-dibromo-6-(2-ethylhexyl)-[1,2, 5] Thiadiazo[3,4-F]benzotriazole and 4-(4,4,5,5-tetramethyl-1,3,2-dioxaborolin-2-yl)pyridine , under the catalysis of [1,1'-bis(diphenylphosphino)ferrocene]palladium dichloride, the photosensitizer is obtained through oxidative addition and reductive elimination. The photosensitizer disclosed by the invention has a strong absorption ability in visible light, has a stable structure under slightly acidic to weakly alkaline conditions, and has a high quantum yield and high singlet oxygen generation ability, and can be used as a new photosensitizer. Fluorescence imaging or photodynamic therapy of tumors.