The aim of the study was to assess the occurrence of classic risk factors in the study group of patients with heart failure and to link them with the transcriptional activity of the examined genes: metalloproteinase 9 (MMP-9) and the tissue inhibitor of metalloproteinases 1 (TIMP-1). A total of 150 (100%) patients qualified for the study, including 80 (53.33%) patients with heart failure in the course of coronary artery disease, 40 (26.67%) with coronary artery disease without heart failure, and 30 (20.00%) in whom the presence of atherosclerotic changes in the coronary arteries was excluded. The material for molecular tests was peripheral blood collected from patients within the first 24 h of hospitalisation. A quantitative analysis of transcriptional activity was performed using the RT-qPCR technique. The most common classic risk factors among the patients in the study group were arterial hypertension (117; 78.00%) and overweight/obesity (102; 68%). In the group of patients with coronary artery disease and heart failure burdened with overweight/obesity, a significantly higher transcriptional activity of the metalloproteinase 9 (MMP-9) gene was found in comparison to patients who were not burdened with this risk factor. The analysis also showed the statistically significant higher transcriptional activity of the metalloproteinase 9 (MMP-9) gene in a group of patients with coronary artery disease and heart failure who smoked. The examined patients with heart failure due to myocardial ischemia were burdened with numerous cardiovascular risk factors, the most common of which were arterial hypertension, obesity/overweight, and hypercholesterolemia. A significant increase in the transcriptional activity of the metalloproteinase 9 (MMP-9) gene in the presence of risk factors (male sex, overweight/obesity, smoking) indicates another pathomechanism of their action and participation in the development and progression of heart failure during myocardial ischemia. There is a need for systematic information and educational activities promoting a healthy lifestyle with the elimination of modifiable risk factors for cardiovascular diseases.