A pharmaceutical composition comprising biodegradable gel-based matrix, at least one active agent and stem cells able to differentiate into cardiac tissue under the form of a patch, for the treatment of heart failure due to myocardial infarction is disclosed.