The present invention relates to substituted cinnamamide derivatives, the method for preparing thereof and the use thereof. Said derivatives has a structure of formula (I). The method for preparing the substituted cinnamamides and their derivatives of the present invention is also disclosed. Substituted piperonal derivatives are selected as starting materials to prepare the substituted cinnamamide derivatives of the present invention by Wittig reaction and acid-amine condensation reaction. Further, a use of the present compounds in preventing and treating depressive-type mental diseases is disclosed.本發明涉及一種取代桂皮醯胺衍生物、製備方法及其應用。本發明的取代桂皮醯胺衍生物具有式(I)結構,本發明還包括以取代胡椒醛衍生物為原料經過威悌(Wittig)反應和酸胺縮合反應製備本發明的取代桂皮醯胺及其衍生物的方法以及可作為治療和預防抑鬱型精神疾病藥物的應用。