The function of an enzyme is most directly influenced by its shape. The physical shape of an enzyme allows it to be connected to only one type of a molecule, the one that is compatible with the shape. Through the same it then interacts with specific kinds of molecules, so its shape determines the function.