The unusual foamy configuration of pumice happens because of simultaneous rapid cooling and rapid depressurization.