Objective To compare anesthetic effects between erector spinae plane block(ESPB)and intercostal nerve block(ICNB)in thoracoscopic lung wedge resection guided by surgical pleth index(SPI).Methods A total of 46 patients who underwent thoracoscopic lung wedge resection in Wenzhou People's Hospital from July 2020 to June 2022 were selected and divided into ICNB group and ESPB group according to random number table method,with 23 cases in each group.Remifentanil infusion rate,propofol dosage and intraoperative vital signs were compared between two groups.Results The intraoperative remifentanil infusion rate in ESPB group was significantly lower than that in ICNB group(P<0.05).There was no significant difference in intraoperative propofol dosage between two groups(P>0.05).The SPI,bispectral index and mean arterial pressure in ESPB group during lung wedge resection were significantly lower than those in ICNB group(P<0.05).There was no significant difference in heart rate between two groups(P>0.05).Conclusion Under the guidance of SPI,patients undergoing thoracoscopic lung wedge resection with preoperative ESPB had low opioid consumption and stable vital signs.