This document summarizes a study on the corrosion of magnesium and its alloys for biomedical applications. The objectives were to optimize the gas mixture in Hank's solution to obtain pH 7 and study corrosion effects when immersed with and without added protein. Various techniques were used, including immersion testing magnesium alloys in Hank's solution with controlled bubbling of CO2 and air gases. The results found that bubbling CO2 maintained pH at 7, AZ91 alloy had a higher corrosion rate than HP magnesium due to galvanic corrosion from different phases, and adding protein lowered the corrosion rate. In conclusion, the study helped understand applying magnesium alloys in biomedicine by measuring corrosion rates and examining microstructure changes after