Anticoagulants and antiplatelet drugs are used to prevent and treat blood clots by either slowing clot formation or preventing platelets from clumping together, thereby reducing the risk of heart attacks, strokes, and other conditions caused by blockages in the bloodstream.