Chemical reaction in which two molecules or moieties (functional groups) combine to form a larger molecule, together with the loss of a small molecule.