Objective: To analyze the effects of desflurane and sevoflurane anesthesia on postoperative recovery after long lasting tumor surgery. Methods: One hundred and sixty patients undergoing endoscopic radical esophagectomy and gastrectomy (80 cases of each surgical type) from November 2019 to March 2020 at Henan Cancer Hospital, were randomized into 4 groups(n=40): group CS (esophageal cancer+sevoflurane anesthesia), group DS (esophageal cancer+desflurane anesthesia),group CW (stomach cancer+sevoflurane anesthesia) and group DW (gastric cancer+desflurane anesthesia). General anesthesia was induced by intravenous agents in all four groups, which were maintained by inhaled anesthetic during the operation. The mean arterial pressure (MAP), heart rate (HR), and surplus pulse O(2) (SpO(2)) immediately before induction (T(1)), the moment of operation begin (T(2)), operation end (T(3)) and extubation (T(4)) were recorded. Also, the duration required for inhalation anesthetic alveolar concentration reaching 0.5 minimum alveolar concentration (MAC) during induction, the alveolar anesthetic concentration at the beginning of the operation, the duration required for XMAC (patients specific alveolar concentration) declining to 0.5 MAC on recovery period, and the duration of alveolar concentration of 0.5 MAC declining to 0.2 MAC were determined. Additionally, the durations of spontaneous breathing recovery, eyes opening, extubation and recovery of consciousness were recorded. Finally, restlessness score (RS) during recovery period was used to evaluate postoperative agitation. Results: Compared with group CS and group CW, no significant differences in MAP, HR, SpO(2) in group DS and group DW at T(1) to T(4) were found (all P>0.05). The durations required for inhalation anesthetic alveolar concentration reaching 0.5 MAC were (5.6±1.3), (5.8±2.1), (3.5±1.5) and (3.8±1.0) min in group CS, group CW, group DS and group DW, where the durations in group DS and group DW were significantly shorter than those in group CS and group CW (F=32.538, P<0.05). The durations of alveolar concentration of 0.5 MAC declining to 0.2 MAC were (6.4±2.2), (7.0±1.5), (4.2±2.2) and (4.1±1.5) min in group CS, group CW, group DS and group DW, and the durations in group DS and group DW were significantly shortened as compared with group CS and group CW (F=42.113, P<0.05). Compared with group CS and group CW, group DS and group DW required significantly shorter time for spontaneous breathing recovery, eye opening,extubation, and directional force recovery after operation (all P<0.05). Conclusions: Both desflurane and sevoflurane anesthesia can achieve satisfactory anesthesia depth during long lasting tumor surgery. Desflurane can shorten the recovery time and early extubation, and improve the quality of recovery.