Some medications may interact with magnesium, so it's important to speak with your healthcare provider before taking magnesium supplements if you are on any prescription medications. In particular, magnesium can interact with antibiotics, blood pressure medications, and muscle relaxants.