The invention belongs to the technical field of a synthesis method of ZSM-5 molecular sieves, and particularly relates to a method for synthesizing ordered mesoporous ZSM-5 through in-situ template carbonization. The method comprises steps as follows: step one, an SBA-15 / P123 compound and an MCF-P123 compound are prepared; step two, the SBA-15 / P123 compound and the MCF-P123 compound are carbonized respectively; step three, the ordered mesoporous ZSM-5 is synthesized with a steam assisted crystallization method. According to the synthesis method, SBA-15 with a P123 template which is not removed is subjected to in-situ two-step carbonization, namely, sulfuric acid pre-carbonization and argon high-temperature carbonization at 900 DEG C, so that the internal P123 soft template is carbonized into an ordered mesoporous hard template to the greatest extent, after impregnation with a TPAOH solution and steam assisted crystallization, air calcination is performed to remove carbon finally, and two crystalized ordered mesoporous ZSM-5 molecular sieves with different mesopore sizes are obtained.