In order for dicarboxylic acid and diol to combine, dicarboxylic acid has to give up its OH group and diol has to give up its H from its OH group. When these 3 atoms combine they form a water molecule. This leaves the carbon from the dicarboxylic acid to bond directly with the oxygen from the diol. This is the bond that we call the ester link.