In physics, a spinfoam or spin foam is a topological structure made out of two-dimensional faces that represents one of the configurations that must be summed by functional integration to obtain a Feynman's path integral description of quantum gravity. It is closely related to loop quantum gravity.