AbstractIn tokamaks, a leading platform for fusion energy, periodic filamentary plasma eruptions known as edge-localized modes occur in plasmas with high-energy confinement and steep pressure profiles at the plasma edge. These edge-localized modes could damage the tokamak wall but can be suppressed using small three-dimensional magnetic perturbations. Here we demonstrate that these magnetic perturbations can change the magnetic topology just inside the steep gradient region of the plasma edge. We identify signatures of a magnetic island, and their observation is linked to the suppression of edge-localized modes. We compare high-resolution measurements of perturbed magnetic surfaces with predictions from ideal magnetohydrodynamic theory where the magnetic topology is preserved. Although ideal magnetohydrodynamics adequately describes the measurements in plasmas exhibiting edge-localized modes, it proves insufficient for plasmas where these modes are suppressed. Nonlinear resistive magnetohydrodynamic modelling supports this observation. Our study experimentally confirms the predicted role of magnetic islands in inhibiting the occurrence of edge-localized modes. This will be beneficial for physics-based predictions in future fusion devices to control these modes.