Background: Magnesium treatment did not improve outcome in patients with aneurysmal subarachnoid haemorrhage in the Magnesium in Aneurysmal Subarachnoid Haemorrhage II trial. We hypothesized that high glucose levels may have offset a potential beneficial effect to prevent delayed cerebral ischemia. We investigated if magnesium treatment led to less delayed cerebral ischemia and if glucose levels interacted with magnesium treatment in the Magnesium in Aneurysmal Subarachnoid Haemorrhage II trial. Aim: To investigate the effect of magnesium treatment on occurrence of delayed cerebral ischemia and the interaction between glucose levels and magnesium treatment in subarachnoid hemorrhage patients. Methods: The Magnesium in Aneurysmal Subarachnoid Haemorrhage was a phase III randomized placebo-controlled trial assessing the effect of magnesium sulphate on clinical outcome in aneurysmal subarachnoid hemorrhage patients. For the current study, we included only the patients admitted to the University Medical Centre-Utrecht. We calculated hazard ratios for occurrence of delayed cerebral ischemia in patients treated with magnesium vs. placebo for the entire study population, and separately in the subgroups of patients with high and low mean fasting and mean daily glucose levels until onset of delayed cerebral ischemia. We used the cross-product of magnesium and glucose in the regression analysis to evaluate whether an interaction between magnesium and glucose existed. Results: We included 616 patients: 307 received magnesium and 309 placebo; 156 patients had delayed cerebral ischemia. Hazard ratio for magnesium on occurrence of delayed cerebral ischemia was 1·0 (95% confidence interval: 0·7-1·4). Results were similar in patients with low or high fasting or daily glucose levels. We found no interactions between magnesium treatment and high fasting (P=0·54) and daily glucose (P=0·60). Conclusions: Magnesium treatment did not reduce the risk of delayed cerebral ischemia in patients with aneurysmal subarachnoid hemorrhage, nor was there an interaction with glucose levels. It is therefore unlikely that glucose levels explain the failure of magnesium to prevent delayed cerebral ischemia and poor outcome after aneurysmal subarachnoid hemorrhage.