Background and study aim: Upper endoscopy can be successfully carried out in children under deep sedation and anaesthesia. However, the best method of upper endoscopy for children who require gastrointestinal intervention has yet to be defined. The aim of this study is to investigate the efficacy and safety of the sedation induced by intravenous midazolam and ketamine during upper endoscopy in children. Patients and methods: This study included patients ages 3-18 years who had undergone upper endoscopy. All subjects received IV midazolam and ketamine. During the intervention, hypoxia, tachycardia, bradycardia, hypertension, and hypotension were recorded. After the intervention, euphoria, dysphoria, vertigo, visual problems (such as diplopia and nystagmus,),and emergencies (such as arrhythmia, convulsion, and hallucination), among other findings, were recorded. Older children who were capable of expressing themselves were questioned to help determine these conditions. Results: The mean age of the study group was was 11.9 +/- 3.42 years; 54% of the patients were females, and 46% were males. During the upper endoscopy, hypoxia occurred in 9% of patients, mild hypertension in 14%, hypotension in 5%, tachycardia in 23%, bradycardia in 8%, and flushing-urticaria in 2%. After the upper endoscopy, one of the most common complications was sore throat, which occurred in 24% of patients. Vomiting was observed in 14% of patients, dizziness in 24%, diplopia in 27%, euphoria in 3% (5 patients), dysphoria in 4%, and hallucination in 4%. Of the total patients, 4% required oxygen supply with a face mask. Conclusion: The results of our study showed that the use of IV midazolam and ketamine during upper endoscopy in children was safe and effective. (C) 2017 Pan-Arab Association of Gastroenterology. Published by Elsevier B.V. All rights reserved.