The present invention relates to substituted cinnamamide derivatives, the method for preparing thereof and the use thereof. Each of 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.