Previous studies of the prognosis of patients with heart failure due to cardiomyopathy categorized patients according to whether they had ischemic or nonischemic disease. The prognostic value of identifying more specific underlying causes of cardiomyopathy is unknown. We evaluated the outcomes of 1230 patients with cardiomyopathy. The patients were grouped into the following categories according to underlying cause: idiopathic cardiomyopathy (616 patients), peripartum cardiomyopathy (51); and cardiomyopathy due to myocarditis (111), ischemic heart disease (91), infiltrative myocardial disease (59), hypertension (49), human immunodeficiency virus (HIV) infection (45), connective-tissue disease (39), substance abuse (37), therapy with doxorubicin (15), and other causes (117). Cox proportional-hazards analysis was used to assess the association between the underlying cause of cardiomyopathy and survival. During a mean follow-up of 4.4 years, 417 patients died and 57 underwent cardiac transplantation. As compared with the patients with idiopathic cardiomyopathy, the patients with peripartum cardiomyopathy had better survival (adjusted hazard ratio for death, 0.31; 95 percent confidence interval, 0.09 to 0.98), and survival was significantly worse among the patients with cardiomyopathy due to infiltrative myocardial disease (adjusted hazard ratio, 4.40; 95 percent confidence interval, 3.04 to 6.39), HIV infection (adjusted hazard ratio, 5.86; 95 percent confidence interval, 3.92 to 8.77), therapy with doxorubicin (adjusted hazard ratio, 3.46; 95 percent confidence interval, 1.67 to 7.18), and ischemic heart disease (adjusted hazard ratio, 1.52; 95 percent confidence interval, 1.07 to 2.17). The underlying cause of heart failure has prognostic value in patients with unexplained cardiomyopathy. Patients with peripartum cardiomyopathy appear to have a better prognosis than those with other forms of cardiomyopathy. Patients with cardiomyopathy due to infiltrative myocardial diseases, HIV infection, or doxorubicin therapy have an especially poor prognosis.