Ribozymes function by folding into specific three-dimensional structures that bring reactive groups into close proximity, thereby facilitating chemical reactions. The catalytic activity of ribozymes is often dependent on the formation of complex tertiary structures, which are stabilized by divalent metal ions such as Mg2+. These structures enable the ribozymes to lower the activation energy of reactions, much like traditional protein enzymes.