Magnesium supplements can block osteoporosis medications like Fosamax from working if taken too close together. Follow the two-hour timing rule to protect your bone density and avoid treatment failure.