Higher category theory can be employed to generalize the notion of a gauge group to the notion of a gauge n-group. This novel algebraic structure is designed to generalize notions of connection, parallel transport and holonomy from curves to manifolds of dimension higher than one. Thus it generalizes the concept of gauge symmetry, giving rise to a topological action called nBF action, living on a corresponding n-principal bundle over a spacetime manifold. Similarly as for the Plebanski action, one can deform the topological nBF action by adding appropriate simplicity constraints, in order to describe the correct dynamics of both gravity and matter fields. Specifically, one can describe the whole Standard Model coupled to gravity as a constrained 3BF or 4BF action. The split of the full action into a topological sector and simplicity constraints sector is adapted to the spinfoam quantization technique, with the aim to construct a full model of quantum gravity with matter. In addition, the properties of the gauge n-group structure open up a possibility of a nontrivial unification of all fields. An n-group naturally contains additional novel gauge groups which specify the spectrum of matter fields present in the theory, in a similar way to the ordinary gauge group that prescribes the spectrum of gauge vector bosons in the Yang-Mills theory. The presence and the properties of these new gauge groups has the potential to explain fermion families, and other structure in the matter spectrum of the theory.