Anticoagulants and antiplatelet agents work to prevent clot formation through different mechanisms. Anticoagulants like heparin and warfarin prevent clotting by inhibiting coagulation factors, while antiplatelets like aspirin prevent platelet aggregation. Platelets play a key role in hemostasis, initially forming a platelet plug through adhesion and aggregation at the site of vascular injury. This is later stabilized by the coagulation cascade forming a fibrin clot. Anticoagulants and antiplatelets are used to prevent thrombus formation in conditions like heart attacks, strokes, and deep vein thrombosis.