An alloy and an implant having a three-dimensional structure based on such alloy. The alloy comprises a monophasic MgZn alloy containing from 2.0 wt. % Zn to 6 wt. % Zn, having less than 0.001 wt. % of one or more other elements with the remainder being Mg. In some embodiments, the alloy is substantially free of microgalvanic elements. In some embodiments, the alloy includes a MgZnCa alloy containing nanosized precipitates being less noble than the Mg matrix alloy and having a Zn content ranging from 3.0 wt. % Zn to 6 wt. % Zn and a calcium content ranging from 0.0005 wt. % to 1.0 wt. %, having less than 0.001 wt. % of one or more other elements with the remainder being Mg. In other embodiments, the alloy includes a MgZnCa alloy containing nanosized precipitates being less noble than the Mg matrix alloy, a plurality of nanosized precipitates being more noble than the Mg matrix and having a Zn content ranging from 3.0 wt. % Zn to 6 wt. % Zn, a calcium content ranging from 0.0005 wt. % to 1.0 wt. %, having less than 0.001 wt. % of one or more other elements with the remainder being Mg.