A 25-year-old paraplegic man who had sustained a T3/T4 vertebral compression fracture 3 years previously presented with severe, painful spasm of the left hamstring muscle group of 2 hours' duration. This spasm produced extreme knee flexion of a degree which held the left foot posterior to the right buttock. An intravenous injection of 2 g magnesium sulphate produced immediate relief. Possible mechanisms of action of magnesium are discussed.