Warfarin is used to help prevent and treat blood clots, as well as complications from blood clots. It also helps lower the risk of complications after a heart attack.