Biomaterials, in particular bone foams, a process for preparing such materials as well as an applicator for applying the biomaterials directly to the patient's application site, and the use of a composition comprising water, a surfactant and a propellant in the preparation of a bone foam for the preparation of a calcium phosphate foam wherein the foam is obtainable by the mixture of at least two phases, a first phase comprising water and optionally a propellant, a second phase comprising one or more sources for calcium and/or phosphate, and wherein the foaming is performed during the mixture of the at least two phases to provide an improved calcium phosphate foam, process for the preparation of a calcium phosphate foam, use of a composition, solid state structure, calcium phosphate cement foam and bone foam applicator.