If you have had clots before or if you have another illness, such as cancer, you will take anticoagulants for as long as those risk factors are present.