It is theorized that the process of making testosterone from cholesterol, needs magnesium to function properly.
Studies have shown that significant gains in testosterone occur after taking 8-10 mg magnesium/kg body weight/day.