In organic chemistry, transesterification is the process of exchanging the organic group R″ of an ester with the organic group R′ of an alcohol as is used in the production of biodiesel.