Objective Skull pin insertion in patients undergoing craniotomies elicits hemodynamic and neuroendocrine stress response that may be deleterious to the patient. Various drugs and techniques have been documented in literature to abate this stress response. Against this background, we aimed to compare the efficacy of intravenous dexmedetomidine and local infiltration of ropivacaine for attenuation of stress response to pin insertion in craniotomies. Methods Eighty-eight adult patients undergoing craniotomy under general anesthesia from March 2019 to April 2020 requiring application of head holder were randomized into two equal groups. After intubation, 0.75 µg kg -1 of dexmedetomidine over 10 minutes through infusion was given in group D, while local infiltration at pin sites was done with 0.5% ropivacaine, 2 mL at each site in group R. Hemodynamic parameters and levels of serum cortisol, prolactin, and blood glucose were measured before and after pin insertion. Unpaired t -test for continuous variables and Mann-Whitney U test was used for nonnormally distributed variables. Results Heart rate was statistically similar between the two groups at all the observed time points. The difference in mean arterial pressure values between the two groups was found to be statistically significant only from 10 to 20 minutes after pin insertion being statistically similar at rest of the time points. Levels of serum glucose, cortisol, and prolactin values 30 minutes after pin insertion were statistically similar between both groups. Conclusion We concluded that both interventions are equally efficacious in attenuation of hemodynamic and stress response to head holder application in patients undergoing craniotomies.