Lyases function by removing groups from substrates without the addition of water or the transfer of electrons. This is typically done through the formation of a double bond. For example, decarboxylases remove a carboxyl group from a substrate, leading to the formation of a double bond. Another example is aldolases, which are involved in breaking carbon-carbon bonds.