The main drawback of a conventional stenting procedure is the high risk of restenosis. The idea of a stent that "disappears" after having fulfilled its mission is very intriguing and fascinating, since it can be expected that the stent mass decreases in time to allow the gradual transmission of the mechanical load to the surrounding tissues owing to controlled dissolution by corrosion. Magnesium and its alloys are appealing materials to design biodegradable stents. The objective of this work is to develop, in a finite element framework, a model of Magnesium degradation able to predict the corrosion rate, thus providing a valuable tool to the design of bioresorbable stents. Continuum damage mechanics is suitable for modelling several damag...