The invention belongs to the technical field of solar cell materials, and particularly relates to a sensitizer for a dye-sensitized solar cell and a preparation method thereof. The preparation method of the photosensitizer provided by the invention comprises the following steps of: taking 5-(4-nitrophenyl)-10,15,20-tris(4-hydroxyphenyl)porphyrin as an initiator; under nitrogen conditions, dissolving the initiator in concentrated hydrochloric acid, and reducing the initiator into 5-(4-aminophenyl)-10,15,20-tris(4-hydroxyphenyl)porphyrin by using stannous chloride; then, dissolving the reduced porphyrin and zinc acetate in an inert organic solvent for coordination; finally, dissolving the generated zinc protoporphyrin and 4-carboxybenzaldehyde in a dichloromethane solvent, and heating and refluxing; and after the reaction is finished, adding petroleum ether or absolute methanol for precipitating products, and recrystallizing to obtain a corresponding product N-(5-p-phenyl)-10,15,20-tris-p-hydroxyphenyl zinc protoporphyrin-p-carboxyl benzimide. The product provided by the invention has the advantages of high molar extinction coefficient, low cost and the like.