Mg and its alloys have been introduced as promising biodegradable materials for biomedical implant applications due to their excellent biocompatibility, mechanical behavior, and biodegradability. However, their susceptibility to rapid corrosion within the body poses a significant challenge and restricts their applications.