Provided in the present invention are heterocyclic compounds, and a pharmaceutical composition and use thereof, belonging to the technical field of pharmaceutical
chemistry. The series of heterocyclic compounds prepared by the present invention have effective
sedative,
hypnotic and / or anaesthetic effects, can control the status epilepticus, and also have an
analgesic effect, thus providing a new option for clinical preparation of drugs having an
analgesic effect, drugs having anaesthetic,
sedative, or
hypnotic effects and / or capable of controlling status epilepticus, and drugs having anaesthetic,
sedative, or
hypnotic effects and / or being capable of controlling status epilepticus and also having an
analgesic effect.