Increasing evidence suggests that long noncoding RNAs (lncRNAs) play crucial roles in various biological processes. However, little is known about the effects of lncRNAs on autophagy. Here we report that a lncRNA, termed cardiac autophagy inhibitory factor (CAIF), suppresses cardiac autophagy and attenuates myocardial infarction by targeting p53-mediated myocardin transcription. Myocardin expression is upregulated upon H2O2 and ischemia/reperfusion, and knockdown of myocardin inhibits autophagy and attenuates myocardial infarction. p53 regulates cardiomyocytes autophagy and myocardial ischemia/reperfusion injury by regulating myocardin expression. CAIF directly binds to p53 protein and blocks p53-mediated myocardin transcription, which results in the decrease of myocardin expression. Collectively, our data reveal a novel CAIF-p53-myocardin axis as a critical regulator in cardiomyocyte autophagy, which will be potential therapeutic targets in treatment of defective autophagy-associated cardiovascular diseases.