Foam is a substance that is formed by trapping pockets of gas in a liquid or solid, where the concentration of the gas phase is high (i.e. it occupies the majority of the volume).