Hemostasis is the process by which bleeding is stopped. It occurs through four main mechanisms: vascular constriction, formation of a platelet plug, formation of a blood clot through coagulation, and growth of fibrous tissue into the blood clot. Platelets play a key role by adhering to exposed collagen in injured vessels to form the initial platelet plug. The coagulation cascade then forms a fibrin clot through the extrinsic and intrinsic pathways. Anticoagulants such as heparin and warfarin prevent clotting through different mechanisms. Tests such as prothrombin time and bleeding time are used to assess coagulation function.