A commutative diagram of modules with exact rows yields an exact sequence from the kernels and cokernels of its three vertical maps. Applied degree by degree to a short exact sequence of chain complexes, it produces the connecting homomorphisms in the associated long exact homology sequence.
Codex Wiki