Objective: To analyze the anesthetic effect of internal thoracoscopic surgery with sufentanil and remifentanil target-controlled infusion intravenous anesthesia. Methods: Eighty patients who underwent internal thoracoscopic examination at the endoscopy center of our hospital were selected for analysis. The selected 80 patients were grouped by random number table. 40 patients received sufentanil target-controlled infusion vein. Anesthesia was used as the study group. The remaining 40 patients received remifentanil target-controlled infusion intravenous anesthesia as a control group, and the anesthetic effects of the two groups of patients after receiving different anesthetic target-controlled infusion measures were compared. Results: After the two groups of patients received different anesthetic drug target-controlled infusion measures, the circulation was stable during the operation. The difference of pain visual analog scores was not obvious 30 minutes after the end of the operation. There was a significant difference in the wake-up time between the two groups. There was no significant difference in the incidence of adverse reactions between the two groups after surgery. Conclusions: In patients with clinical thoracoscopic surgery, remifentanil and remifentanil can be used for target-controlled infusion intravenous anesthesia, but patients in the remifentanil group can wake up more quickly and can be promoted and applied.