The manipulation of matter waves had an important role in the history of quantum mechanics. The first experimental validation of matter-wave behaviour was the observation of diffraction of matter by crystals 1 , followed by interference experiments with electrons, neutrons, atoms and molecules using gratings and Young's double slit [2][3][4][5] . More recently, matter-wave manipulation has become a building block for quantum devices such as quantum sensors 6 and it has an essential role in a number of proposals for implementing quantum computers 7,8 . Here, we demonstrate the coherent control of the spatial extent of an atomic wavefunction by reversibly stretching and shrinking the wavefunction over a distance of more than one millimetre. The quantum-coherent process is fully deterministic, reversible and in quantitative agreement with an analytical model. The simplicity of its experimental implementation could ease applications in the field of quantum transport and quantum processing.Cold atomic gases trapped in optical lattices (large and periodic ensembles of optical microtraps created by interfering optical laser beams) provide ideal tools for studying quantum transport in different regimes 9,10 and quantum many-body systems in periodic potentials [11][12][13][14][15] . One of the challenges in this field is to coherently transfer matter waves between macroscopically separated sites. This would provide a mechanism to couple distant quantum bits and ultimately would lead to scalable quantum-information processing with cold atoms in optical lattices 16 . Recently, it was demonstrated that spatially driven lattice potentials in the presence of a linear potential can induce a coherent delocalization of a matter wave 17 when the driving is applied at the Bloch frequency ν B , that is, the linear potential between adjacent sites expressed in frequency units. The delocalization occurs at integer multiples of ν B because of the resonant coupling between Wannier-Stark levels within the same band. The resonances are characterized by a sinc 2 (π t ν) spectral profile, where t is the driving time and ν is the detuning of the driving from the resonant frequency. The sinc response here arises from the influence on the tunnelling current of the relative phase φ between the driving and the site-to-site quantum phase in the broadened wavefunction. When φ lies between 0 and π the wavefunction expands, whereas when it lies between π and 2π the wavefunction shrinks. In particular, when φ = 2π the wavefunction returns to the starting point. Such a reversible behaviour is expected provided that the evolution of the wavefunction is fully coherent.Any mechanism introducing loss of coherence would in fact lead to a non-reversible broadening. However, in a decoherence-free regime, it should be possible to engineer the spatial extension of the wavefunction using the frequency offset and the amplitude of the driving as tuning knobs. Here, we experimentally demonstrate this new technique of matter-wave manipulation by showing that coher...