The cure rate of multidrug-resistant and rifampicin-resistant pulmonary tuberculosis in the world is about 60%, and timely surgical intervention can increase the cure rate to more than 85%. The treatment of multidrug-resistant and rifampicin-resistant pulmonary tuberculosis requires multidisciplinary involvement of tuberculosis department, thoracic surgery department, imaging department, laboratory department and other disciplines to significantly reduce its morbidity and mortality. Although the World Health Organization has defined the role and status of surgery in the treatment of multidrug-resistant and rifampicin-resistant pulmonary tuberculosis, there are significant differences in the cognition and diagnosis and treatment methods of domestic clinicians on multidrug-resistant and rifampicin-resistant pulmonary tuberculosis. Therefore, it is urgent to develop expert consensus on surgical treatment of multidrug-resistant and rifampicin-resistant pulmonary tuberculosis for clinicians to learn from in clinical diagnosis and treatment practice. The Chinese Society for Tuberculosis,Chinese Medical Association organized experts in tuberculosis thoracic surgery to write the first draft of consensus based on the expert suggestion on surgical diagnosis and treatment of multidrug-resistant pulmonary tuberculosis written by the European Office of the World Health Organization in 2014 and the 2019 version of China's multidrug-resistant and rifampicin-resistant pulmonary tuberculosis expert consensus, and combined with China's national situation. This consensus systematically elaborated seven aspects, including surgical indications, contraindications to surgery, conditions and timing of surgery, surgical methods and indications of various surgical procedures, preoperative and postoperative chemotherapy, treatment of surgical complications, and perioperative management of patients with multidrug-resistant and rifampin-resistant pulmonary tuberculosis. After discussion and voting by experts, six recommendations were formed, aiming to provide reference for clinicians in the treatment of multidrug-resistant and rifampin-resistant pulmonary tuberculosis and further improve the standardized diagnosis and treatment level of multidrug-resistant and rifampin-resistant pulmonary tuberculosis in China.