1. Introduction
Population ageing and modern lifestyle demands have increased the need for surgical interventions to treat bone injuries [
1]. These interventions require biomaterials that are not only biocompatible [
2] but also offer the necessary mechanical resistance for adequate structural support [
3]. Traditionally, permanent materials such as titanium, cobalt-chrome, and steel alloys have been employed. However, their mechanical properties do not align well with those of natural bone, which could compromise adjacent tissue, increase the risk of secondary fractures [
4], and increase the need for second surgeries [
5,
6,
7].
An alternative is biodegradable metals, which enhance biocompatibility and more closely mimic the mechanical characteristics of bone, thereby avoiding the complications associated with permanent implants. Biodegradable metals such as magnesium and its alloys are particularly promising for orthopedic applications [
8,
9,
10]. Specifically, the alloys of the AZ series (Mg-Al-Zn), and in particular AZ31 (Mg-3Al-1Zn), are the most studied both in vitro and in vivo [
11,
12]. Magnesium is an essential trace element, and the Mg
2+ ions released during degradation are naturally utilized by the body without causing toxicity or adverse effects [
13,
14,
15,
16]. Recent in vivo studies using Mg-Zn-Ca alloys have confirmed their resorbable nature and antibacterial performance in bone defect models [
17]. Moreover, high local concentrations of Mg
2+ have shown cytotoxic effects on osteosarcoma cells, inhibiting proliferation and migration [
18]. F. Witte et al. [
19] conducted corrosion tests on various magnesium alloys implanted in guinea pig femurs. Their results suggest that the corrosion products were either phagocytosed by multinucleated cells or dissolved and excreted by the kidneys without inducing toxicity.
Despite their interesting properties, magnesium alloys also present certain drawbacks. One of the main concerns is their relatively high degradation rate in physiological environments [
20,
21,
22], which is strongly influenced by the pH and the presence of chloride ions [
23]. This degradation rate, often higher in vitro than in vivo [
24,
25], may prematurely reduce the mechanical integrity of the alloy and cause the release of hydrogen in quantities that exceed the body’s absorption capacity [
24,
25,
26,
27,
28]. These effects could hinder bone regeneration [
29] and negatively affect blood flow [
30].
Although the safety of magnesium-based implants has been demonstrated in various in vivo studies [
19,
31,
32,
33,
34,
35,
36,
37,
38], localized corrosion phenomena such as pitting may still occur. These events can initiate crack formation in the material and accelerate degradation, leading to a significant loss of structural integrity [
6,
7,
11].
Among the different approaches to partially overcome this drawback, those focusing on surface modification stand out [
39,
40,
41,
42,
43,
44]. Specifically, the electrodeposition technique consists of the generation of a metallic coating on a base material, thanks to the electrochemical reduction of the electroactive species dissolved in an electrolyte [
45]. In this regard, calcium phosphate coating in the form of hydroxyapatite (HA) has aroused great interest due to its similarity to bone apatite. Its porous structure has been shown to promote bone growth [
46]. More recent studies comparing inorganic surface treatments on Mg1Ca alloys found that crystalline hydroxyapatite coatings provided superior corrosion resistance and lower cytotoxicity compared to phosphate or aluminum oxide coatings [
47]. Also, mixed coatings, such as combinations of hydroxyapatite, magnesium and zinc phosphate, have also shown potential to enhance corrosion resistance and boost osseointegration. In this context, Huang et al. [
48] obtained excellent corrosion results and good biocompatibility with mouse fibroblasts with this coating.
It is widely known that one of the most serious complications in the use of implants is infections [
49,
50,
51]. Bacterial colonization of biomedical devices begins with the physical adhesion of bacteria to the material’s surface. This phenomenon, initially reversible, becomes irreversible as biochemical interactions between the microorganisms and the material culminate in biofilm formation. These multicellular structures enhance the bacteria’s resistance to antibiotics, acting as a virulence mechanism that significantly complicates the treatment of implant-associated infections [
52].
In this context, magnesium- and zinc-based coatings have gained increasing attention. Several studies have shown that the degradation products of magnesium-based materials can impair bacterial viability and adhesion, thus contributing to infection prevention [
53,
54,
55,
56]. This effect has been partially attributed to the local pH increase caused by magnesium ion release [
55,
57,
58], which disrupts bacterial electrochemical gradients and reduces adenosine triphosphate (ATP) synthesis through excessive H
+ consumption [
59].
In addition to pH elevation, some authors propose that high concentrations of Mg
2+ ions generate osmotic stress, further compromising bacterial survival [
53,
57,
60,
61,
62]. Similarly, Zn
2+ ion release during coating degradation exerts a bacteriostatic effect [
63]. The negatively charged peptidoglycan layer of bacterial cell walls binds these cations, reducing bacterial metabolic activity without inducing cell death.
An additional feature of zinc-based coatings, and in particular zinc oxide, is their response to ultraviolet (UV) radiation. Zinc oxide is an n-type semiconductor with a bandgap energy of 3.37 eV [
64], comparable to titanium dioxide at 3.2 eV [
65,
66], which falls within the UV-C radiation range. When activated, ZnO generates reactive oxygen species (ROS), with biocidal activity linked to the production of H
2O
2. This compound can penetrate cytoplasmic membranes [
45,
67,
68,
69,
70,
71,
72,
73,
74,
75], leading to lipid peroxidation. Bakhshesdhi-Rad et al. [
76] demonstrated antibacterial activity by incorporating TiO
2 and zinc-doped hydroxyapatite in a magnesium alloy. Xie et al. [
76] reported that ZnO nanostructures exhibited a rapid bactericidal effect through photocatalysis under UV irradiation, achieving bacterial reductions exceeding 97% for
E. coli and 94.9% for
S. aureus within one minute. Furthermore, this effect of ZnO can persist for hours after the UV source is removed, enhancing its antibacterial properties [
77,
78].
During surgical implantation, defects may occur in the surface coatings. These damages include material loss, cracking, or delamination, especially in high-friction areas such as threads [
79,
80]. Such alterations compromise coating integrity and expose the underlying metallic substrate to the physiological environment [
19,
81]. In magnesium alloys, the exposed areas are highly reactive, which can accelerate local degradation and promote bacterial adhesion [
12,
82]. These defects are particularly relevant in coatings designed with antibacterial functionality, as partial loss may compromise implant biocompatibility [
83,
84] and reduce their effectiveness against microbial colonization.
This research evaluates, for the first time, the antibacterial efficacy of a UV-activated surface treatment after partial coating loss, as may occur during the surgical insertion of biodegradable magnesium implants. In the present work, a two-step coating process combining electrodeposition and a subsequent alkaline treatment was employed to obtain a hybrid HMZ coating (hydroxyapatite–magnesium phosphate–zinc oxide). This approach allowed the preparation of stable, crystalline coatings suitable for evaluating efficacy under partial coverage and UV activation conditions. The coating was designed to combine osteoconductive and antibacterial properties, the latter being activated by UV irradiation. To address this, surfaces with controlled coverage levels of 30%, 60%, and 100% were fabricated and tested. Experiments were carried out on two magnesium alloys, AZ31B and Mg0.6Ca, against two clinically relevant bacterial strains: S. aureus (Gram-positive) and E. coli (Gram-negative). Antibacterial activity was assessed on both planktonic and sessile bacteria, as well as on biofilm formation. This experimental strategy simulates a realistic surgical scenario and allows the minimum coverage threshold needed to preserve the antimicrobial performance of this functional coating to be determined.
2. Materials and Methods
2.1. Substrate Preparation
Two magnesium alloys, AZ31B (AZ31) and Mg0.6Ca (MgCa), were used in the form of 25 mm diameter and 2 mm thick discs. Specimens were mechanically polished consecutively with 3 µm and 1 µm diamond paste, rinsed with ethanol, and dried with hot air. Due to magnesium’s high affinity for the ambient atmosphere, the maximum exposure time to air was limited to 1 h before specimen characterization.
2.2. Surface Preparation
HMZ coatings were electrodeposited on AZ31 discs following a procedure previously described for AZ31 [
85], and on MgCa using an adapted protocol. A two-electrode cell with a 110 mm gap was operated at 37 ± 1 °C. The magnesium alloy acted as the working electrode, while a platinum electrode served as the counter electrode.
For full surface treatment (AZ31-100 and MgCa-100), current densities of 5 A/cm2 and 15 A/cm2 were applied, with electrodeposition times of 7200 s and 3600 s, respectively.
For partial surface treatments (AZ31-30, AZ31-60, MgCa-30, and MgCa-60), specific regions were masked to prevent coating, exposing only 30% or 60% of the surface to the electrolyte. These samples were designed with a striped pattern composed of alternating 3 mm-wide coated and uncoated bands. The masked areas were defined using a high-performance insulating tape resistant to strong electrolytes and elevated temperature. This material is inert under the electrodeposition conditions employed and does not leach impurities or modify local current distribution. XPS analysis performed on samples previously covered with the tape confirmed the absence of surface contamination or foreign elements). The coating–uncoated interface obtained by this masking strategy exhibited well-defined boundaries and homogeneous thickness. In these cases, the current density and electrodeposition time were maintained constant, while the total applied current was adjusted according to the exposed surface area.
The electrolyte solution consisted of 0.042 mol/L Ca(NO3)2·4H2O, 0.042 mol/L Mg(NO3)2·6H2O, 0.042 mol/L Zn(NO3)2·6H2O, 0.078 mol/L (NH4)H2PO4, 0.100 mol/L NaNO3, and 8.820 mol/L H2O2. The pH was adjusted to 4 using H3PO4.
After electrodeposition, an alkaline heat treatment was applied to transform the coatings into dense and crystalline layers. This treatment involved immersing the electrodeposited surfaces in a 0.1 mol/L NaOH solution at 80 °C for 4 h. During electrodeposition, local alkalisation promotes Zn(OH)2 and phosphate precursor formation rather than direct ZnO. The subsequent alkaline treatment promotes Zn(OH)2 dehydration into ZnO and stabilizes calcium phosphate as crystalline hydroxyapatite. Finally, the samples were rinsed with distilled water and dried at 50 °C for 1 h in a vacuum oven.
2.3. Exposure to Ultraviolet Light Source
A set of untreated samples, a set of partially treated samples, and another set of fully treated samples were exposed to a UV-C source for 24 h (referred to with the subscript UV). This exposure period was sufficient to ensure a post-radiation effect of the coatings capable of affecting bacterial viability [
77,
78]. A high-pressure mercury lamp (Philips, Ibérica, Spain) was used as the UV source, with a dominant emission line at 254 nm (UV-C range). A high-pressure mercury lamp (Philips, Ibérica, Spain) was used as the UV source, with a main emission peak of 254 nm (85–90%) and a secondary peak of 185 nm (5–10%), producing ozone that is filtered by the lamp glass. The irradiation period of 24 h at 254 nm and 4.2 mW cm
−2 was chosen based on prior optimization studies in our laboratory and in the literature, ensuring complete ZnO photoactivation and stable ROS production across the entire surface. Shorter exposure times could activate the surface only partially, but the chosen protocol guarantees reproducibility and comparability among all tested conditions. The samples were positioned 100 mm from the light source, centred, and exposed to an intensity of approximately 4.2 mW/cm
2, receiving a mean dose of 169.8 ± 3.7 J cm
−2 measured by a cosine-corrected sensor connected to a dosimeter UV-MAT (OPSYTEC Dr. Gröbel GmbH-Germany, Ettlingen, Germany).
2.4. Physicochemical Characterization of Surfaces
2.4.1. Chemical Composition of the Coating
The surface chemical composition of the samples was analyzed using X-ray Photoelectron Spectroscopy (XPS). XPS measurements were performed using a PHI 5000 VersaProbe II (PHI, Lafayette, LA, USA) equipped with a monochromatic AlKα X-ray source (1486.6 eV) with a spot size of 100 μm and 26.6 W power. High-resolution spectra were acquired for C1s, P2p, O1s, Mg1s, Ca2p, and Zn2p3/2 for each sample.
2.4.2. Crystalline Structure of the Coating
The crystalline structure of the coatings was determined using X-Ray Diffraction (XRD) on a Bruker D8 Advance diffractometer (Bruker, Ettlingen, Germany) with Bragg–Brentano geometry and CuKα radiation (λ = 1.5406 Å). The angular range was set between 10° and 60°, with a step size of 0.02° and a scanning rate of 1° min
−1. Peak interpretation was conducted using standards provided by the Joint Committee on Powder Diffraction Standards (JCPDS) [
86], corresponding to hydroxyapatite (09-0432), magnesium phosphate (33-0876) and zinc oxide (89-1397).
2.4.3. Morphology, Roughness, and Other Topographical Parameters of the Coating
A 3D optical profilometer (DCM8, Leica Microsystems, Barcelona, Spain) was used to evaluate surface roughness before and after coating. Topographical parameters were obtained using two external software programmes: one for acquisition (LeicaSCAN DCM8 v.6.6.9.1, Sensofar Tech. S.L., Terrassa, Spain) and one for analysis (LeicaMap Premium 8.1, Mountains Tech. Digital Surf, Spain). Surface texture images were analyzed according to roughness parameters provided by ISO 25178 [
87] and EUR 15178N standards [
88]. Surface morphology was further analyzed using a Scanning Electron Microscope (SEM, Quanta 200FEG, FEI, Eindhoven, Netherlands) with an accelerating voltage of 20 kV, a working distance of 9.5 mm, and 6500× magnification. The elemental composition of the coatings was subsequently analyzed by Energy Dispersive X-ray Spectroscopy (EDX), performed at 15 keV and integrated with the SEM system. EDS spectra were acquired in area-scan mode at 2000× magnification from representative surface regions of the coatings.
2.4.4. Surface Electrical Properties
The electrical properties of the surfaces were determined through zeta potential (ξ) measurements. Zeta potential was obtained using streaming current measurements with an Electrokinetic Analyzer (SurPass 3, Anton Paar KG, Graz, Austria). An adjustable sample holder was used; the electrokinetic channel was formed with a standard material, polyvinylidene fluoride, and the samples under study. The electrolyte used was 1 mM KCl, prepared with MilliQ water of 18.2 MΩ·cm resistivity and a pH of 7.2. Zeta potential was calculated using the Helmholtz–Smoluchowski equation. Corrections associated with asymmetrical cells were undertaken [
89].
2.4.5. Release of Mg2+ and pH Change
The release of Mg
2+ ions from all surfaces was quantified using inductively coupled plasma mass spectrometry (ICP-MS) with an Agilent 7900 ICP-MS system (Agilent Technologies, Santa Clara, CA, USA). The samples were in contact with phosphate-buffered saline (PBS, pH 6.8) for 30, 60, 120, 180, 300 min and 24 h, and with tryptic soy broth (TSB, pH 6.5, Becton Dickinson, Franklin Lakes, NJ, USA) for 24 h. The experimental setup was similar to that used in the bacterial assays (
Section 2.6,
Section 2.7 and
Section 2.8) to allow for comparative results, but without the presence of bacteria. Additionally, pH measurements were recorded at the same time points using a LAQUAtwin-pH-33 metre (Horiba Scientific, Kyoto, Japan).
In addition, Zn2+ release was evaluated by ICP-MS under the same experimental conditions. In all cases, Zn2+ readings were below the instrument detection limit (<0.05 mg/L), including partial coverage and UV-irradiated surfaces.
2.4.6. Corrosion Test
Electrochemical impedance spectroscopy (EIS) measurements were performed on the magnesium alloys during immersion tests in PBS solution at times of 2 h and 24 h to study corrosion behaviour. Measurements were performed using a potentiostat/galvanostat (PGSTAT4000, Metrohm Autolab, Utrech, The Netherlands) coupled with a frequency response analyser (FRA) and a three-electrode electrochemical cell [
90]. A platinum mesh and an Ag/AgCl (3 M NaCl) electrode served as the counter and reference electrodes, respectively. The test specimen was connected as the working electrode, with an exposed surface area of 4.90 cm
2. To minimize external interference, the electrochemical cell was housed within a Faraday cage. The impedance spectra were acquired by applying a logarithmic frequency sweep from 100 kHz to 10 mHz, recording ten data points per decade. A sinusoidal perturbation of ±10 mV was applied relative to the open-circuit potential (OCP). The OCP was monitored for 5 min before and after each EIS measurement to confirm its stability. The resulting impedance spectra were interpreted using equivalent electrical circuit models. Data fitting and analysis were performed with ZView software, version 4.0i (Scribner Associates, Inc., Southern Pines, NC, USA).
2.5. Bacterial Culture
The bacterial strains selected for the assays were Staphylococcus aureus ATCC 29213 (Gram-positive) and Escherichia coli ATCC 25922 (Gram-negative), both obtained from the American Type Culture Collection (ATCC). The strains were preserved at −80 °C using porous beads (Microbank, ProLab Diagnostics, Round Rock, TX, USA) until use. For maintenance, they were subcultured on blood agar plates (Oxoid, Ltd., Madrid, Spain) and subsequently incubated in TSB under agitation (100 rpm) at 37 °C for 14 h. This incubation time had been previously validated to ensure that the bacteria reached the late exponential growth phase. After incubation, the bacterial suspension was adjusted to a concentration of 108 CFU/mL. For assays evaluating sessile and planktonic bacteria without further growth, the suspension was prepared in PBS. For biofilm formation tests, the bacteria were resuspended in fresh TSB.
2.6. Bacterial Adhesion and Antibacterial Activity on the Substrate
2.6.1. Staining Technique
The Live/Dead staining method was applied to fully treated and non-treated surfaces, but not to the rest. This was done to identify significant damage to bacterial membrane integrity on fully coated surfaces, as a baseline for the analysis of partially coated surfaces. One millilitre of bacterial suspension was deposited on each surface and incubated at 37 °C under orbital shaking at 20 rpm (Heidolph Rotomax 120, Heidolph Electro GmbH, Schwabach, Germany) for 30, 60, 120, and 180 min. Following each incubation period, the samples were carefully retrieved and rinsed by sequential immersion in individual beakers containing fresh PBS to remove non-adherent bacteria. The adhered bacteria were then stained using the Live/Dead Baclight L-7012 kit (Invitrogen SA, Barcelona, Spain), following the manufacturer’s protocol. Viability and bacterial quantification were assessed by epifluorescence microscopy (Eclipse Ci, Nikon, Tokyo, Japan). Bacteria emitting red-orange fluorescence were classified as damaged, while those exhibiting green fluorescence were considered viable. Enumeration was performed using NIS-Elements BR 4.10 software (Nikon Instruments Inc., Melville, NY, USA). The percentage of damaged bacteria (%D) was calculated as follows:
where T represents the total number of adhered bacteria, and V represents the number of viable bacteria.
2.6.2. Serial Dilution Technique
The serial dilution technique was used to assess the viability of sessile microorganisms on surfaces. The incubation time for the 1 mL bacterial suspension was established based on the point at which 100% bacterial damage was observed on the fully treated surfaces after UV-C irradiation, as determined in the adhesion experiments described in
Section 2.6.1. After the specified times, the substrates were removed and washed by immersion in separate beakers filled with fresh PBS to eliminate non-adherent microorganisms. The surfaces were then placed in contact with 3 mL of PBS and sonicated for 3 min to detach the bacteria adhered to the surface. The resulting bacterial suspension was centrifuged at 3000 rpm for 5 min, and the supernatant was removed. The pellet was washed twice with 3 mL of sterile PBS and resuspended in 1 mL of sterile PBS. This microbial extraction protocol was verified by inspecting all surfaces under microscopy to confirm the absence of any remaining adhered bacteria. The viability of the suspended bacteria from the pellet was assessed using the serial dilution method on agar plates. The antibacterial rate (%AR) was calculated using the following equation:
where N1 and N2 represent the cultured colony counts obtained from the initial bacterial suspension (N1) and from the suspension after remaining bacterial adhesion to the surface (N2).
2.7. Antibacterial Activity of Planktonic Bacteria
The antibacterial effect on non-adherent bacteria suspended near the studied surfaces was also analyzed. One millilitre of bacterial suspension was deposited on each surface. Samples were incubated at 37 °C with orbital shaking at 20 rpm. Incubation times corresponded to those at which 100% damage had been previously observed in sessile bacteria and were increased until 100% damage was reached in planktonic bacteria. These times were 120 and 180 min for E. coli, and 180 and 300 min for S. aureus. Bacterial viability in the suspension was determined using the serial dilution and plating method. The rate was calculated according to Equation (2), where N2 now refers to planktonic bacteria present in the suspension after contact with the surface.
2.8. Biofilm Formation
Biofilm formation on the analyzed surfaces was assessed through ATP quantification. For this purpose, 1 mL of bacterial suspension prepared in TSB was deposited on each surface and incubated for 24 h at 37 °C under orbital shaking at 20 rpm. After incubation, non-adherent bacteria were removed by gently rinsing the surfaces twice with sterile TSB. The number of viable bacteria within the biofilm was determined using the BacTiter-Glo microbial cell viability assay (Promega Corporation, Madison, WI, USA), according to the manufacturer’s guidelines. This technique estimates the metabolic activity of bacterial cells by measuring ATP. The BacTiter-Glo reagent was added directly onto each sample, allowing it to react in the dark for 15 min under gentle agitation (20 rpm). After the reaction, the supernatant was transferred to white, flat-bottom, 96-well polystyrene microplates (Greiner Bio-One, Frickenhausen, Germany), and luminescence was measured using a luminometer (Microplate Fluorescent Reader FLX 800, Bio-Tek Instruments, Winooski, VT, USA). The percentage of biofilm production relative to the uncoated AZ31 or MgCa substrates (%B) was calculated using the formula
where B1 and B2 represent ATP production quantified as Relative Light Units (RLU) on the non-electrodeposited (B1) and electrodeposited (B2) samples.
2.9. Statistical Analysis
All experiments were conducted in triplicate, with technical duplicates included in microbiological assays. Descriptive statistics and subsequent data analysis were performed using R software 4.2.2 (R Core Team (2022). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria). Data are presented as mean ± standard deviation. Normality was assessed using the Shapiro–Wilk test (n < 50) and the Kolmogorov–Smirnov test (n ≥ 50). In the case of topographical and initial bacterial adhesion information, when data met the normality and homocedasticity (Barlett’s test) assumptions, two-way analysis of variance (ANOVA) was applied to compare group means between different alloys and bacterial strains, followed by Tukey’s Honest Significant Difference (HSD) post hoc test for pairwise comparisons. Statistical significance was set at p < 0.05.
4. Discussion
Implantable devices may suffer surface damage during surgical placement [
79,
80]. This can compromise coating integrity and leave unprotected areas [
19,
81] exposed to bacterial colonization. This study investigates how partial coating loss affects bacterial colonization. AZ31 and MgCa magnesium alloys coated with HMZ were used for this purpose.
Uncoated AZ31 surfaces showed lower roughness and fewer topographic features than MgCa (
Table 1). Electrically, both alloys exhibited a positive zeta potential, although lower in AZ31. Since
S. aureus and
E. coli carry a net negative surface charge in physiological media [
123], higher adhesion would be expected on more positively charged surfaces, such as MgCa. However, the higher bacterial adhesion observed on AZ31 suggests that surface chemistry has a greater influence than electrostatic interactions.
XPS and XRD analyses confirmed the presence of hydroxyapatite, magnesium phosphate, and zinc oxide on the electrodeposited surfaces. This confirms that ZnO formation mainly occurred during the alkaline post-treatment, consistent with the dehydration of Zn(OH)
2 and the concurrent crystallization of hydroxyapatite under alkaline conditions. These compounds are widely recognized for their bioactive properties [
8,
45,
46,
48,
124,
125,
126,
127,
128,
129]. Although the electrodeposited composition was identical in both alloys, the coated surfaces behaved differently from their respective uncoated counterparts. Electrodeposition significantly increased roughness parameters such as Sp, Sq, and Sdr. However, after coating, both alloys displayed a comparable surface morphology—more homogeneous and isotropic. Both materials also exhibited a shift toward a more negative surface charge. The zeta potential of coated AZ31 became negative, while that of coated MgCa decreased compared to uncoated MgCa but remained positive. This change in zeta potential is attributed to the combined effect of the electrodeposition and subsequent alkaline treatment, which increases surface hydroxylation. This behaviour may explain the higher bacterial colonization observed on coated MgCa compared to coated AZ31 for both negatively charged bacterial strains [
123].
Bacterial adhesion increased more rapidly on coated MgCa, even at the shortest contact time evaluated. It is worth noting that bacterial morphology may also influence adhesion. S. aureus, with a spherical shape, appears to adapt better to surface topography than E. coli, which has an elongated shape. This may explain why E. coli adhesion was lower compared to S. aureus. Nevertheless, these adhesion patterns were not affected by UV irradiation, either on coated or uncoated surfaces.
Beyond bacterial adhesion, the bactericidal capacity of the surfaces was evaluated using two complementary approaches: viability staining (%D) and serial dilution plating (%AR). Viability staining revealed high levels of damaged bacteria (>98%) only after prolonged contact. This occurred at 180 min for
S. aureus and 120 min for
E. coli on UV-irradiated coated surfaces of both alloys. However, this technique only indicates membrane integrity loss and does not confirm cell death. This strong antibacterial effect is consistent with the well-documented photocatalytic behaviour of ZnO under UV irradiation [
45,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
130]. ZnO is an n-type semiconductor with a band gap comparable to that of TiO
2, enabling surface photoactivation. Upon UV exposure, photons with energy above its band gap excite electrons from the valence to the conduction band, generating electron-hole pairs. These charge carriers react with water and oxygen to produce hydroxyl radicals (
) and superoxide anions (
), which induce oxidative stress, membrane disruption and cell death. Although reactive oxygen species (ROS) were not directly quantified in this study, the pronounced bactericidal response observed after UV exposure supports the hypothesis of a surface-mediated oxidant mechanism. To determine bacterial viability, colony-forming units (CFU) were quantified from bacteria detached from the surfaces. Under these conditions, the antibacterial reduction percentage (%AR) confirmed that UV treatment over the full surface area induced a viability loss exceeding 98% for both
S. aureus and
E. coli, demonstrating a strong bactericidal effect upon coating activation.
In the absence of UV irradiation, none of the surfaces showed significant bactericidal activity. Only uncoated AZ31 exhibited some efficacy against
E. coli, likely due to higher Mg
2+ release and pH elevation during degradation [
20,
21,
22,
23,
53,
54,
55,
56,
57,
58,
60,
61,
62]. This inherent antibacterial behaviour of magnesium is associated with Mg
2+ ion release and the resulting local alkalisation during corrosion. In coated samples, this effect was strongly reduced due to the protective nature of the HMZ layer, indicating that the antibacterial response observed after UV activation originates from the photocatalytic ZnO rather than from substrate degradation. Although the electrodeposited coatings substantially improved corrosion resistance, they did not display antibacterial activity without UV activation. pH values and Mg
2+ release were similar for irradiated and non-irradiated surfaces, indicating that the antibacterial effect observed after UV exposure results from the photocatalytic activity of ZnO and the generation of reactive oxygen species (ROS). No dissolved Zn
2+ was detected under any condition. This agrees with the low solubility of ZnO in neutral or alkaline media and with the formation of insoluble Zn species such as Zn(OH)
2 or zinc phosphates. These compounds immobilize Zn within the coating–solution interface, preventing ion release. Therefore, the antibacterial efficacy after UV irradiation is not related to Zn
2+ release but to the photocatalytic activity.
In contrast, UV activation triggered a pronounced bactericidal effect on fully coated surfaces. After 180 min (S. aureus) or 120 min (E. coli), %D and %AR values exceeded 98%, indicating complete loss of bacterial viability. In comparison, uncoated surfaces maintained limited antibacterial activity, even after UV exposure.
Regarding planktonic bacteria, uncoated AZ31 and MgCa surfaces exhibited limited viability reduction after 180 min (E. coli) and 300 min (S. aureus), with %AR values not exceeding 31% for AZ31 and 40% for MgCa. Fully coated, non-irradiated surfaces (AZ31-100 and MgCa-100) showed even lower efficacy, with reductions never surpassing 35%.
UV activation markedly improved antibacterial activity in planktonic conditions as well. After 180 min (E. coli) or 300 min (S. aureus), AZ31-100UV and MgCa-100UV achieved %AR values above 96% for both strains. It is noteworthy that bacterial viability loss occurred faster in adhered bacteria than in planktonic cells, suggesting that UV-activated coatings exert a more immediate effect under direct contact conditions.
Biofilm formation was assessed by measuring bacterial metabolic activity after 24 h of incubation. Uncoated AZ31 and MgCa surfaces were used as reference values, with high levels of biofilm formation for both bacterial strains.
Without UV activation, fully coated surfaces (AZ31-100 and MgCa-100) did not reduce biofilm metabolic activity. In fact, they exhibited an increase compared to uncoated alloys. This behaviour suggests that the coatings may promote biofilm formation, possibly due to increased surface roughness and reduced ion release during the initial contact period.
In contrast, after UV activation, a significant reduction in biofilm metabolic activity was observed on fully coated surfaces. AZ31-100UV showed a 73% reduction against S. aureus and 80% against E. coli, while MgCa-100UV achieved even higher values, with reductions of 84% and 86%, respectively. These results indicate that the UV-activated coating effectively compromises the viability of bacteria embedded in biofilm, reinforcing its potential as an antibacterial strategy in clinical contexts where biofilm formation represents a major risk. This strong bactericidal action originates from surface-level interactions, as the antibacterial mechanism occurs at the outermost layer where bacteria directly contact the coating and the photoactivated ZnO.
Having established the strong antibacterial performance of fully coated surfaces, the next step was to determine whether this effect could be maintained in the event of partial coating loss during implantation. To this end, surfaces with controlled coverage on 30% and 60% of their area were analyzed to simulate defects that may arise during surgical procedures.
In the absence of UV irradiation, partially coated surfaces exhibited similar behaviour to fully coated but non-irradiated ones, with %AR values against adhered bacteria ranging from low to moderate. In AZ31, percentages remained around 30–45%, while in MgCa, they were slightly lower. These results suggest that, without UV activation, the percentage of coated area does not substantially affect bacterial viability on the surface.
However, after UV irradiation, the scenario changed significantly. Surfaces with 60% of coated area showed antibacterial responses nearly indistinguishable from fully coated area and irradiated surfaces, reaching %AR values close to 98% against both S. aureus and E. coli. This is particularly relevant, as it indicates that full surface coverage is not required to achieve robust bactericidal activity. Even with 30% coverage, substantial reductions were observed after UV activation—up to 63% in AZ31 against E. coli and 54% against S. aureus—demonstrating functional antibacterial performance under limited coverage conditions. Previous studies with different partial coating morphologies showed similar antibacterial responses.
For planktonic bacteria, it was previously shown that %AR values remained low without irradiation, and this trend was similar in partially coated surfaces. However, UV activation once again proved critical: 60% coated area surfaces reached %AR values between 95–96% in AZ31 and 85–86% in MgCa for both bacterial strains, comparable to fully coated area surfaces. Surfaces with 30% coated area also showed notable antibacterial activity after irradiation, with %AR values ranging from 61% to 74%, depending on the alloy and bacterial species.
This trend was confirmed in biofilm experiments as well. In the absence of UV activation, partially coated surfaces not only failed to reduce biofilm metabolic activity but, in some cases, even promoted biofilm compared to uncoated controls. However, after irradiation, 60% coated area surfaces showed biofilm reductions of 73% and 80% in AZ31 against S. aureus and E. coli, respectively, and 82–84% in MgCa—values nearly identical to those observed in fully coated area surfaces. Even with 30% area treatment, the effect remained relevant, with biofilm activity reductions ranging from 40% to 61%, confirming that UV-activated ZnO retains antibacterial effectiveness despite incomplete surface coverage.
Overall, these results demonstrate that the developed coating—composed of hydroxyapatite, magnesium phosphate, and zinc oxide—exhibits strong antibacterial activity when UV-activated, not only against adhered and planktonic bacteria but also against biofilms. The most significant finding of this study is that with only a 60% of the area treated is sufficient to replicate the antibacterial response of a fully coated surface, achieving over 95% viability reduction in all tested conditions. Even a more limited coated area, such as 30%, produced a moderate yet functional response after UV activation. These findings represent a major contribution to understanding the behaviour of implants against bacterial colonization when they undergo manipulation and potential surface damage during clinical procedures.