<b><i>Objective:</i></b> This research was aimed to explore protective effects of allicin on rat model of myocardial infarction via JNK signaling pathway. <b><i>Methods:</i></b> Rat myocardial ischemia model was established with subcutaneous injection of isoproterenol (ISO). Seventy-five rats were randomly divided into 5 groups (<i>n</i> = 15): sham group, ISO group, low-dose group (1.2 mg/kg/days for 7 days), medium-dose group (1.8 mg/kg/days for 7 days), and high-dose group (3.6 mg/kg/days for 7 days). Routine HE staining and Masson staining were performed to observe myocardial histopathology. The expression of oxidative stress-related indicators, heart tissue apoptosis-related proteins, and JNK and p-JNK proteins were measured for different groups. <b><i>Results:</i></b> Compared with the sham group, the T wave value of the ISO group was significantly increased (<i>p <</i> 0.01). When allicin was administered, the T wave values at different time points in all groups were all decreased. Compared with the sham group, the ratio of eNOS, Bcl-2/Bax was significantly decreased, and p-eNOS, iNOS, caspase-3, caspase-9, and Cyt-c were significantly elevated in the ISO group (<i>p <</i> 0.05). After allicin was administered, significant changes in these proteins were observed in the medium- and high-dose groups. There was no significant change in the expression of JNK protein in the ISO group compared with the sham group; however, the expression of eNOS and p-JNK protein were significantly upregulated (<i>p <</i> 0.01) and the expression of p-eNOS and iNOS were significantly downregulated (<i>p <</i> 0.01). When allicin was administered, expression of p-JNK protein was significantly downregulated. <b><i>Conclusion:</i></b> Allicin can reduce oxidative stress damage and cardiomyocyte apoptosis in rat model of myocardial infarction and can significantly regulate JNK signaling pathway.