The present invention relates to a substituted cinnamamide derivative, a preparation method and the use thereof. The substituted cinnamamide derivative of the present invention has a structure as represented by formula (I). Also disclosed are a method for preparing the substituted cinnamamide of the present invention and the derivatives thereof by using the substituted piperonal derivatives as raw materials via a Wittig reaction and an acid-amine condensation reaction, and the use thereof as a medicament for the treatment and prevention of depressive psychoses.