Minimally invasive intervention strategies after myocardial infarction use state-of-the-art catheter systems that are able to combine mapping of the infarcted area with precise, local injection of drugs. To this end, catheter delivery of drugs that are not immediately pumped out of the heart is still challenging, and requires a carrier matrix that in the solution state can be injected through a long catheter, and instantaneously gelates at the site of injection. To address this unmet need, a pH-switchable supramolecular hydrogel is developed. The supramolecular hydrogel is switched into a liquid at pH > 8.5, with a viscosity low enough to enable passage through a 1-m long catheter while rapidly forming a hydrogel in contact with tissue. The hydrogel has self-healing properties taking care of adjustment to the injection site. Growth factors are delivered from the hydrogel thereby clearly showing a reduction of infarct scar in a pig myocardial infarction model.