The reaction of 2,3,3-trimethyl-3H-indole with 1,4-butanesulfonic acid lactone yields 4-(2,3,3-trimethylindole)butanesulfonate(1).Aniline reacts with 1,1,3,3-tetraethoxypropane to obtain N-(3-phenylamino-2-propenylidene)aniline hydrochloride(2).Finally,a novel cyanine dye was obtained by reacting 4-(2,3,3-trimethylindole)butane sulfonate with N-(3-phenylamino-2-propenylidene)aniline hydrochloride.By investigating the effects of the type of base,the amount of base,and temperature in the reaction conditions,the changes in separation yield under different conditions were explored,and the trends of increasing or decreasing separation yield under different conditions were compared.The investigation of reaction conditions determines the optimal reaction conditions:the feeding ratio of compounds 1 and 2 is 2:1.The amount of sodium acetate used is twice the equivalent of aniline.Moderate amount of acetic anhydride.Reaction temperature is 110℃.Reaction time is 1 hour.The yield is 65%.