The present invention relates to a kind of substitution cinnamamide derivatives, preparation method and applications. Substitution cinnamamide derivative of the invention has formula (I) structure, and the invention also includes to replace pepper aldehyde derivatives to prepare the method for substitution cinnamamide and its derivative of the invention by Wittig reaction and acid amide condensation reaction as raw material and can be used as the application for the treatment of and prevention depressive type mental disease drug.本發明涉及一種取代桂皮酰胺衍生物、製備方法及其應用。本發明的取代桂皮酰胺衍生物具有式(I)結構,本發明還包括以取代胡椒醛衍生物爲原料經過Wittig反應和酸胺縮合反應製備本發明的取代桂皮酰胺及其衍生物的方法以及可作爲治療和預防抑鬱型精神疾病藥物的應用。