Molecular sieves function by providing a high surface area and a uniform pore size, which allows for the selective adsorption of reactants. This selectivity is crucial in heterogeneous catalysis, where the catalyst is in a different phase than the reactants. By selectively adsorbing specific molecules, molecular sieves can facilitate the desired chemical reactions while minimizing side reactions. The uniform pore size also ensures that only molecules of certain dimensions can enter, thereby enhancing reaction specificity.