Opioids are used for pain relief in patients suffering from acute myocardial ischemia or infarction. Clinical and laboratory studies demonstrate that morphine treated patients or the experimental animal model suffering acute myocardial ischemia and reperfusion, may worsen myocardial viability. As transient receptor potential vanilloid 1 (TRPV1) plays important roles in pain sensation and cardio-protection, we query whether opioids may exacerbate myocardial viability via interaction with TRPV1 activity in the pain relief. We found the co-expressions of TRPV1 and opioid μ, δ and κ receptors in adult rat cardiomyocytes. Intravenous injection of morphine (0.3 mg/kg) at 20 min after induction of myocardial ischemia, in the rat model of acute myocardial ischemia and reperfusion, induced significant reduction of phosphorylated TRPV1 (p-TRPV1) in the ventricular myocardium and increase in serum cardiac troponin I (cTnI), compared with the ischemia/reperfusion controls (all P < 0.05). The effects of morphine were completely reversed by selective opioid μ, δ and κ receptor antagonists. While significant upregulation of p-TRPV1 (P < 0.05) and improvement of ±dP/dt max (all P < 0.05) were detected in the animals giving the same dose of morphine before induction of myocardial ischemia. The changes in p-TRPV1 correlate with the alterations of cTnI (r = −0.5840, P = 0.0283) and ±dP/dt max (r = 0.8084, P = 0.0005 and r = −0.8133, P = 0.0004, respectively). The findings of this study may indicate that potentiation and attenuation of TRPV1 sensitivity correlate with the improvement of the cardiac performance and the aggravation of myocardial viability, respectively, by giving morphine before and during myocardial ischemia and reperfusion.