PurposeGastroscopy is one of the most commonly used diagnostic modalities for upper gastrointestinal disorders. Remazolam besylate, a new type of ultrashort-acting benzodiazepine drug, has been less studied in gastroscopy. In this study, we studied the efficacy and safety of remazolam combined with propofol for painless gastroscopy. DesignThis was a single-center, placebo-controlled randomized trial. MethodsOne hundred patients undergoing painless gastroscopy were included in this study and randomly divided into 2 groups (n = 50 per group): the control group (Con group) and the remazolam group (Rem group). Sufentanil, remazolam, and propofol were used to anesthetize the patients, and then, the effects of different solutions on these patients were compared and analyzed. The patient's general condition, vital signs at different times, the dosage of propofol (mg) and additional times, complications, duration of gastroscopy (minutes), recovery time (minutes), length of stay in the recovery room (minutes), and adverse reactions were recorded. FindingsRem group systolic blood pressure was more stable (P < .05). The amount of additional propofol in Rem group was less (P < .05). The incidence of hypotension, bradycardia, and dizziness was lower in Rem group, as well as the time of awakening and stay in the recovery room were shorter (P < .05). ConclusionsRemazolam combined with sufentanil and propofol has less effect on hemodynamics in painless gastroscopy, and the patients have shorter awakening times.