ZSM-5 functions through a combination of acidic and structural properties. The acidic sites, primarily Brønsted and Lewis acids, facilitate the breaking of chemical bonds in reactant molecules. The unique pore structure ensures that only molecules of certain sizes and shapes can access these active sites, leading to high selectivity in the reactions it catalyzes.