IntroductionAcute pain is common during the endotracheal extubation period, and is related to complications and adverse outcomes. Patients with delayed extubation after craniotomy are vulnerable to pain and complications of extubation. However, pain control during extubation is still inadequate. Remifentanil, a new opioid with rapid onset and short duration of action, provides adequate analgesia during procedures with minimal effect of respiratory depression.Methods and analysisThe study is a prospective, randomised, double-blinded, controlled parallel-group design. Patients with delayed extubation after intracranial surgery are screened daily. Adult patients ready for extubation are enrolled and assigned randomly to one of the two treatment study groups, labelled as the ‘Remi group’ or ‘Saline group’. Patients in the Remi group receive an intravenous bolus dose of remifentanil 0.5 μg/kg over 60 s followed by a continuous infusion 0.05 μg/kg/min for 20 min. Patients in the Saline group receive an intravenous infusion of 0.9% sodium chloride at a volume and rate equal to that of remifentanil. Pain intensity is measured by the visual analogue scale (VAS) pain score. Adverse events during drug infusion are documented and reported. Patients will be followed up until hospital discharge, death or 60 days after the trial intervention on a first come, first served basis. Details of the incidence of reintubation and reoperation within 72 h after extubation, length of stay in the intensive care unit and hospital and mortality are collected. The primary end point is the incidence of severe pain (defined as a VAS pain score more than 5 cm) during the periextubation period (defined as the period of time from immediately before extubation to 20 min after extubation).Ethics and disseminationThe study was approved by the Institutional Review Board (IRB) of the Beijing Tiantan Hospital, Capital Medical University. The study findings will be disseminated through peer-reviewed publications and conference presentations.Trial registration numberClinicalTrials (NCT): ChiCTR-PRC-13003879.