Esters are a class of organic compounds formed by the reaction between a carboxylic acid and an alcohol, resulting in the replacement of the hydroxyl group (-OH) of the acid with an alkoxy group (-OR). Esters are ubiquitous in nature and play a crucial role in various chemical processes and applications.