Ligases function by catalyzing the formation of a new bond between two substrate molecules. This process involves the activation of one of the substrates through the hydrolysis of ATP, which provides the necessary energy for the reaction. The substrate activation enables the formation of a covalent bond between the two molecules.