Anticoagulants function by interfering with the blood clotting process. Warfarin, for example, inhibits the synthesis of vitamin K-dependent clotting factors. DOACs, on the other hand, directly inhibit thrombin or factor Xa. This reduction in clotting ability helps prevent the formation of harmful clots but also increases the risk of bleeding.