Warfarin is medicine that controls how your blood clots. It's used to help prevent blood clots that may cause serious health problems. These problems include heart attack, stroke, a blockage in an artery or vein, or a blood clot that travels to the lungs (pulmonary embolism).