Mo/HMCM-22 is one of the candidate catalysts for methane dehydroaromatization (MDA) reaction. However, serious coke deposition would deactivate the catalyst, resulting in a rapid decrease of aromatics yield. Here, we adjusted the acidity of MCM-22 zeolite by doping boron into the framework. Boron species replace some of framework aluminum and prompt aluminum to locate in sinusoidal channel. It optimizes the ratio of strong/weak Brønsted acid, as well as enhances the interaction between molybdenum and HMCM-22 to facilitate the dispersion of molybdenum species. After 10 h of MDA reaction, the yield of aromatics over Mo/H[B]MCM-22 (SBR 30) is 3.5 times higher than that of Mo/H[B]MCM-22 (SBR 5). It decreases by only 4.8 % in comparison to the initial yield. Meanwhile, Mo/H[B]MCM-22 (SBR 30) shows significantly better resistance to coke deposition. Therefore, the established structure–activity relationships provide valuable insights for future research on the modification of zeolite acidity in methane dehydroaromatization reaction.