Vitamin B6 (also known as pyridoxine) is a water-soluble vitamin found in foodstuffs such as beans, nuts and cereals. Vitamin B6 is required for over 100 enzymatic reactions, including the production of major neurotransmitters (serotonin, dopamine, and others) and glutathione (needed for detoxification).
Magnesium is a mineral found in many foods, such as leafy vegetables, grains and nuts, as well as meats and dairy products. Magnesium helps turn the food we eat into energy and also helps make sure the parathyroid glands, which produce hormones important for bone health, work normally.
Some people believe that individuals with autism have significant metabolic abnormalities which can cause or worsen the symptoms of autism. They also believe that some of those metabolic abnormalities can be addressed by consuming more foodstuffs containing vitamin B6 or by taking supplements of vitamin B6. Magnesium is taken at the same time as the vitamin B6 to counteract the side effects of the vitamin B6.