The invention relates to a preparation method of a 2-methyl-1,2,3,9-tetrahydro-benzo[b]pyrrole[1,4]-thiazine-1,3-diketone compound which has a following structural formula (please see the formula in the description). The preparation method comprises the steps that o-aminobenzenethiol, N-methylmaleimide and a catalyst are added into a solvent, oxygen is introduced, the materials are heated to 25 DEG C to 160 DEG C to react for 4 hours to 24 hours, purification is conducted, and then the 2-methyl-1,2,3,9-tetrahydro-benzo[b] pyrrole[1,4]-thiazine-1,3-diketone compound is obtained. According to the 2-methyl-1,2,3,9-tetrahydro-benzo[b]pyrrole[1,4]-thiazine-1,3-diketone prepared through the method, the yield is high, reaction operation is easy, the reaction route is short, an oxidizing agent is green and natural, few three wastes are generated, and industrialized production is easy to achieve.