Current in vitro models fail in predicting the degradation rate and mode of magnesium (Mg) stents in vivo. To overcome this, the microenvironment of the stent is simulated here in an ex vivo bioreactor with porcine aorta and circulating medium, and compared with standard static in vitro immersion and with in vivo rat aorta models. In ex vivo and in vivo conditions, pure Mg wires were exposed to the aortic lumen and inserted into the aortic wall to mimic early- and long-term implantation, respectively. Results showed that: 1) Degradation rates of Mg were similar for all the fluid diffusion conditions (in vitro static, aortic wall ex vivo and in vivo); however, Mg degradation under flow condition (i.e. in the lumen) in vivo was slower than ex vivo; 2) The corrosion mode in the samples can be mainly described as localized (in vitro), mixed localized and uniform (ex vivo), and uniform (in vivo); 3) Abundant degradation products (MgO/Mg(OH)2 and Ca/P) with gas bubbles accumulated around the localized degradation regions ex vivo, but a uniform and thin degradation product layer was found in vivo. It is concluded that the ex vivo vascular bioreactor provides an improved test setting for magnesium degradation between static immersion and animal experiments and highlights its promising role in bridging degradation behavior and biological response for vascular stent research.