Objectives: The aim of the study was to explore the association between different time periods and acute myocardial infarction. Methods: In the study, 124 patients with coronary heart disease were selected as the study participants, and they were divided into observation group and control group averagely, with 62 patients in each group. The control group chose not to exercise, the observation group chose to exercise, and they were divided into morning exercise group and the evening exercise group. The exercise information of patients was collected by the questionnaire, and the relationship between different sports intensity, different movement frequency, duration of different movement, and movement in different time periods was compared with that of acute myocardial infarction. Results: The corrected odds ratio (OR) value of the observation group and the control group was 0.68, and the incidence of acute myocardial infarction was lower in the case of exercise. Different exercise intensity, different exercise frequency, different exercise duration, and different time periods have an important impact on the occurrence of acute myocardial infarction. If the exercise intensity is high, the frequency is high, and the duration is long, they can prevent myocardial infarction. Compared with the control group, the observation group morning exercise group and evening exercise group correction values of OR were 0.61 and 0.57, the difference is distinct, and the difference was statistically significant (P