A reaction between two aldehyde or two ketone molecules (or an aldehyde and a ketone) to yield a single molecule with one hydroxyl and one carbonyl group (exemplified by the conversion of acetaldehyde to aldol), this product typically losing a water molecule readily to form an unsaturated aldehyde or ketone.