The invention discloses a method for preparing an ester compound and a macrolide compound, and belongs to the technical field of
organic chemistry, the preparation method of the ester compound is as follows: in an
organic solvent, an alpha-carbonyl alkenyl ester compound reacts with
alcohol or
phenol under the catalytic condition of alkali to obtain the ester compound; the preparation method of the macrolide compound comprises the following step: in an
organic solvent, carrying out intramolecular hydroxyl reaction on an alpha-carbonyl alkenyl ester compound under the
catalysis condition of alkali or acid, thereby obtaining the macrolide compound. The method is wide in substrate range, high in practicability and high in yield,
racemization of a
carboxylic acid alpha-chiral center can be inhibited in intermolecular
esterification reaction and macrocyclic lactonization reaction, and the method can be applied to
total synthesis of a Brevicidine
natural product containing a 13-membered cyclic ester
peptide core structure; the method disclosed by the invention has the advantages of mild
reaction conditions, simplicity, easiness in operation, wide substrate adaptability, no
racemization of the product and the like.