Abstract The catalytic properties of a microporous H-ZSM-5 zeolite and a granular hierarchical H-ZSM-5h zeolite in the synthesis of basic pyridines and quinolines have been studied. A specific feature of zeolite H-ZSM-5h is the absence of a binder in the granules and the presence of micro-, meso-, and macropores in the pore structure. The H-ZSM-5h sample comprises, in addition to crystals of the original zeolite, crystals with a size of 15–100 nm. The H-ZSM-5h sample exhibits a higher activity, selectivity, and stability than those of the microporous H-ZSM-5 zeolite in all studied reactions.