The process involves the reaction between two monomers, each containing at least two functional groups. When these monomers react, they form a covalent bond and release a small molecule. This step repeats, leading to the formation of long polymer chains. For example, the reaction between a diacid and a diol results in the formation of a polyester with the elimination of water.