Terrestrial volcanic eruptions are the consequence of magmas ascending to the surface of the Earth. This ascent is driven by buoyancy forces, which are enhanced by bubble nucleation and growth (vesiculation) that reduce the density of magma1. The development of vesicularity also greatly reduces the ‘strength’ of magma2, a material parameter controlling fragmentation and thus the explosive potential of the liquid rock3. The development of vesicularity in magmas has until now been viewed (both thermodynamically and kinetically) in terms of the pressure dependence of the solubility of water in the magma, and its role in driving gas saturation, exsolution and expansion during decompression. In contrast, the possible effects of the well documented negative temperature dependence of solubility of water in magma has largely been ignored. Recently, petrological constraints have demonstrated that considerable heating of magma may indeed be a common result of the latent heat of crystallization4 as well as viscous5,6 and frictional7 heating in areas of strain localization. Here we present field and experimental observations of magma vesiculation and fragmentation resulting from heating (rather than decompression). Textural analysis of volcanic ash from Santiaguito volcano in Guatemala reveals the presence of chemically heterogeneous filaments hosting micrometre-scale vesicles. The textures mirror those developed by disequilibrium melting induced via rapid heating during fault friction experiments, demonstrating that friction can generate sufficient heat to induce melting and vesiculation of hydrated silicic magma. Consideration of the experimentally determined temperature and pressure dependence of water solubility in magma reveals that, for many ascent paths, exsolution may be more efficiently achieved by heating than by decompression. We conclude that the thermal path experienced by magma during ascent strongly controls degassing, vesiculation, magma strength and the effusive–explosive transition in volcanic eruptions.