The invention relates to a method for preparing benzodiazepine compounds, and discloses a method for preparing 8-R2-6-(2-R1-phenyl)-1-methyl-3a,4-dihydro-3H-imidazo[1,5-a][1,4] benzodiazepine (midbody II) and 8-R2-6-(2-R1-phenyl)-1-methyl-4H-imidazo[1,5-a][1,4] benzodiazepine (product III), wherein R is hydrogen, fluorine, chlorine, bromine or iodine; R2 is fluorine, chlorine, bromine or iodine. The midbody II is prepared from 7-R2-5-(2-R1-phenyl)-2-aminomethyl-2,3-dihydro-1H-[1,4] benzodiazepine and triethyl orthoacetate as raw materials through ultrasonic reaction; the product III is prepared by performing enzyme dehydrogenation on the midbody II. By adopting the technical scheme of the invention, the dehydrogenation reaction selectivity is improved, and the reaction yield is improved.