An ester is a type of organic compound. It's formed when a carboxylic acid reacts with an alcohol. This reaction is called polymerization and it usually involves the loss of a water molecule. Esters have a distinct, often fruity odor, which makes them commonly used in perfumes and flavorings. They also play vital roles in many biological processes