Although a number of studies have demonstrated that magnesium improves acute motor and cognitive outcome after traumatic brain injury, others have failed to show positive effects on cognitive outcome and none have examined persistent functional deficits. The present study shows that severe impact-acceleration induced, diffuse traumatic brain injury in rats produced profound motor and cognitive deficits that persisted for at least 4 weeks after trauma. Intravenous administration of magnesium sulfate (250 micromoles/kg) at 30 min after injury significantly improved rotarod (sensorimotor) and open field (stress/anxiety) performance, and led to a faster rate of recovery in the Barnes maze (learning). We conclude that posttraumatic magnesium administration attenuates long-term motor and cognitive deficits after traumatic brain injury, and that this improvement may include some reduction of post-traumatic stress and anxiety.