We studied 3162 heart failure patients included in the Spanish BADAPIC registry in order to determine whether statin treatment influences prognosis. Patients were followed up for 35 +/- 22 months (median, 32 months). Patients on statins were more often male and had higher prevalences of risk factors, ischemic heart disease and systolic dysfunction (P<.001) than those not on statins. After adjustment for age, risk factors, ischemic heart disease, renal failure, ejection fraction, anemia, heart rate and drug treatment, statin treatment was found to be a favorable independent predictor of survival: the hazard ratio for mortality was 0.73 (95% confidence interval, 0.45-0.88; P<.001). During follow-up, the 3-year survival rate was higher in patients treated with statins (75% vs. 68%; P<.001). In patients with heart failure, statin treatment appears to be independently associated with better survival.