Abstract: The present invention discloses a triazine-containing photocurable resin and a preparation method thereof. The preparation method of the resin comprises the following steps of: (1) Dissolving the hexamethylolmelamine the unsaturated fatty acids and a catalyst in a solvent, keeping a reaction going, separating and extracting the reaction product after the reaction ends, obtaining triazine-containing fatty acid ester; (2) adding 50 wt % hydrogen peroxide, a catalyst and a solvent, namely methylbenzene, into the triazine-containing fatty acid ester prepared in step (1), keeping a reaction going, obtaining triazine-containing fatty acid ester epoxy resin; (3) adding a polymerization inhibitor and a catalyst into acrylic acid, dropping the triazine-containing fatty acid ester epoxy resin prepared in step (2), keeping a reaction going, and obtaining the triazine-containing photocurable resin.