Diffusional limitations associated with zeolite microporous systems can be overcome by developing hierarchical zeolites, i.e., materials with a micro- and mesoporous framework. In this work, Y and ZSM-5 zeolites were modified using a surfactant-mediated hydrothermal alkaline method, with NaOH and cetyltrimethylammonium bromide (CTAB). For Y zeolite, after a mild acidic pretreatment, the effect of the NaOH+CTAB treatment time was investigated. For ZSM-5 zeolite, different concentrations of the base and acid solutions were tested in the two-step pretreatment preceding the hydrothermal treatment. The properties of the materials were studied with different physical-chemical techniques. Hierarchical Y zeolites were characterized by 3.3-5 nm pores formed during the alkaline treatment through the structure reconstruction around the surfactant aggregates. The effectiveness of the NaOH+CTAB treatment was highly dependent on the duration. For intermediate treatment times (6-12 h), both smaller and larger mesopores were also obtained. Hierarchical ZSM-5 zeolites showed a disordered mesoporosity, mainly resulting from the pretreatment rather than from the subsequent hydrothermal treatment. High mesoporosity was obtained when the concentration of the pretreating base solution was sufficiently high and that of the acid one was not excessive. Hierarchical materials can be obtained for both zeolite structures, but the pretreatment and treatment conditions must be tailored to the starting zeolite and the desired type of mesoporosity.