Addressing fracture-related infections (FRI) and impaired bone healing remains a significant challenge in orthopedics and stomatology. Researchers aim to address this issue by utilizing biodegradable biomaterials, such as magnesium/poly lactic acid (Mg/PLA) composites, to offer antibacterial properties during the degradation of biodegradable implants. Existing Mg/PLA composites often lack sufficient Mg content, hindering their ability to achieve the desired antibacterial effect. Additionally, research on the anti-inflammatory effects of these composites during late-stage degradation is limited. To strengthen mechanical properties, bolster antibacterial efficacy, and enhance anti-inflammatory capabilities during degradation, we incorporated elevated Mg content into PLA to yield Mg/PLA composites. These composites underwent in vitro degradation studies, cellular assays, bacterial tests, and simulation of the PLA degradation microenvironment. 20 wt% and 40 wt% Mg/PLA composites displayed significant antibacterial properties, with three composites exhibiting notable anti-inflammatory effects. In contrast, elevated Mg content detrimentally impacted mechanical properties. The findings suggest that Mg/PLA composites hold promise in augmenting antibacterial and anti-inflammatory attributes within polymers, potentially serving as temporary regenerative materials for treating bone tissue defects complicated by infections.