Warfarin is an anticoagulant used to prevent the formation of blood clots in the blood vessels and their migration elsewhere in the body. Warfarin is commonly prescribed for treatment of atrial fibrillation, deep venous thrombosis, and pulmonary embolism.