The invention provides a benzodiazepine compound as well as a preparation method and a pharmaceutical effect thereof, and belongs to the field of chemical medicines. The benzodiazepine compound is a compound shown as a formula I, or a salt thereof, or a stereoisomer thereof, or a solvate thereof, or a eutectic thereof, or a composition thereof. The compound is good in intravenous sedative anesthesia effect, the anesthesia effect of the compound is equivalent to or even superior to that of remimazolam, and specifically, the effective dosage is remarkably reduced, and the duration time and the recovery time are remarkably shortened. Meanwhile, in rat and mouse caudal vein anesthesia models, compared with remimazolam, the compound has remarkably improved waking quality. The compound providedby the invention has the advantages of fast onset, short duration, fast awakening and good tolerance during anesthesia, can be used for anesthesia induction, anesthesia maintenance and daytime operation anesthesia, and has a good application prospect.