Magnetic thin-film square-or disc-shaped nanostructures with adequate dimensions exhibit a magnetic vortex state: the magnetization vectors lie in the film plane and curl around the structure centre. At the very centre of the vortex, a small, stable core exists where the magnetization points either up or down 1,2 . The discovery of an easy core reversal mechanism 3 did not only open the possibility of using such systems as magnetic memories, but also initiated the fundamental investigation of the core switching mechanism itself [4][5][6][7][8][9][10][11][12][13][14][15] . Theoretical modelling predicted that the reversal is mediated by the creation and annihilation of a vortex-antivortex pair 3,4,16 , but experimental support has been lacking until now. We used high-resolution time-resolved magnetic X-ray microscopy to experimentally reveal the first step of the reversal process: the dynamic deformation of the vortex core. In addition, we have measured a critical vortex velocity above which reversal must occur 5,17 . Both observations support the previously proposed reversal mechanism.Depending on the material type and thickness, the vortex core diameter is typically only 10 (ref. 18) to 25 nm (ref. 19). Although the core is very small, it significantly affects the dynamics as it gives rise to the so-called vortex gyration mode [20][21][22] . This mode corresponds to a circular motion of the vortex around the structure centre. It was recently shown that a low-field excitation of this mode can switch the out-of-plane polarization of the core 3 . This was experimentally observed by determining the vortex core polarization before and after the application of short bursts of an alternating magnetic field 3 . The dynamic process behind the switching could not be inferred from this experiment. However, micromagnetic modelling showed that near a moving vortex core, a region appears where the magnetization acquires an out-of-plane component opposing the vortex core polarization. If this so-called vortex core deformation becomes so strong that it points fully out of the sample plane, a vortex-antivortex pair is nucleated. At this point, the switching is initiated, as the antivortex rapidly annihilates with the original vortex, leaving behind only the newly created vortex core with an opposite polarization 3,4,16 . This annihilation process involves a magnetic singularity, which is necessary for the polarization reversal 23 . Apart from micromagnetic simulations, the dynamic core deformation had already been included in theoretical calculations by Novosad et al. 24 . Its origin and relevance for the switching process were investigated by Yamada et al. 17 and by Guslienko et al. 5 . These authors showed that near a moving vortex, a strong out-of-plane 'kinetic' term in the effective field appears. It is this field that pushes the magnetization towards the opposite direction of the core polarization, causing the dynamic deformation.As the effective out-of-plane field is proportional to the velocity of the vortex movement 17...