A novelsynthesis of 5-O-feruloylquinic acid, a polyphenolic compound found in coffee beans, and its methyl ester derivative has been optimized. The sequence involves 6 steps and is compatible with the preparation of potential human metabolites of these compounds. The key reaction is a Knoevenagel condensation of 4-hydroxy-3-methoxy-benzaldehyde and a malonate ester of quinic acid.