Objects and arrows in general categories can be very different from sets and functions. The category which quantum field theory concerns itself with is called nCob, the ‘n dimensional cobordism category’, and the rough definition is as follows. Objects are oriented closed (that is, compact and without boundary) (n − 1)-manifolds Σ, and arrows M : Σ → Σ′ are compact oriented n-manifolds M which are cobordisms from Σ to Σ′. Composition of cobordisms M : Σ → Σ′ and N : Σ′ → Σ′′ is defined by gluing M to N along Σ′.

Let M be an oriented n-manifold with boundary ∂M. Then one assigns an induced orientation to the connected components Σ of ∂M by the following procedure. For x ∈ Σ, let (v_{1},…,v_{n−1},v_{n}) be a positive basis for T_{x}M chosen in such a way that (v_{1},…,v_{n−1}) ∈ T_{x}Σ. It makes sense to ask whether v_{n} points inward or outward from M. If it points inward, then an orientation for Σ is defined by specifying that (v_{1}, . . . , v_{n−1}) is a positive basis for T_{x}Σ. If M is one dimensional, then x ∈ ∂M is defined to have positive orientation if a positive vector in T_{x}M points into M, otherwise it is defined to have negative orientation.

Let Σ and Σ′ be closed oriented (n − 1)-manifolds. An cobordism from Σ to Σ′ is a compact oriented n-manifold M together with smooth maps

∑ →^{i} M ^{i’}←∑’

where i is a orientation preserving diffeomorphism of Σ onto i(Σ) ⊂ ∂M, i′ is an orientation reversing diffeomorphism of Σ′ onto i′(Σ′) ⊂ ∂M, such that i(Σ) and i′(Σ′) (called the in- and out-boundaries respectively) are disjoint and exhaust ∂M. Observe that the empty set φ can be considered as an (n − 1)-manifold.

One can view M as interpolating from Σ to Σ′. An important property of cobordisms is that they can be glued together. Let M : Σ_{0} → Σ1 and M′ : Σ_{1} → Σ_{2} be cobordisms,

∑_{0} →^{i0} M ^{i1} ← ∑_{1} ∑_{1} →^{i’1} M ^{i2} ← ∑_{2}

Then we can form a composite cobordism M′ ◦ M : Σ → Σ by gluing M to M′ using i′ ◦ i − 1 : ∂M → ∂M′: