A method of synthesizing esters by reacting a carboxylic acid with an alcohol, an ester with a carboxylic acid, or an ester with an alcohol. This method is characterized in that a partially dehydrated solid of a metal hydroxide whose metal belongs to Group III or IV of the Periodic Table is used as a heterogeneous catalyst. This method can be conducted in a gaseous phase or in a liquid phase.