An osteogenic magnesium alloy with improved corrosion resistance, antibacterial, and mechanical properties for orthopedic applications.