Aspirin helps prevent heart attacks by stopping the formation of clots that block blood flow to the heart. Aspirin is used to prevent a first heart attack in people with heart disease risk factors, such as diabetes and high cholesterol. It's also taken to prevent a second heart attack. But this blood-thinning effect sets aspirin therapy up for some potentially serious side effects.