Coagulation, the formation of a blood clot or thrombus, occurs when the proteins of the coagulation cascade are activated, either by contact with a damaged blood vessel wall and exposure to collagen in the tissue space (intrinsic pathway) or by activation of factor VII by tissue activating factors (extrinsic pathway). Both pathways lead to the generation of thrombin, an enzyme that turns the soluble blood protein fibrinogen into fibrin, which aggregates into proteofibrils. Another thrombin-generated enzyme, factor XIII, then crosslinks the fibrin proteofibrils at the D fragment site, leading to the formation of an insoluble gel which serves as a scaffold for blood clot formation.