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