BACKGROUND: The cardiometabolic index (CMI) combines abdominal obesity and abnormal blood lipid indices, representing a good predictive indicator of risk in cardiovascular diseases (CVDs). However, the association between CMI and myocardial infarction (MI) is not clear. OBJECTIVE: The present project was designed to explore the linkage between CMI and MI. METHODS: Data from the National Health and Nutrition Examination Survey (NHANES) 2005-2018 were employed in this project, with CMI as the independent variable and MI as the dependent variable. Weighted logistic regression was applied in the association analysis between CMI and MI. Restricted cubic spline (RCS), subgroup analysis, and interaction tests were employed to elucidate the non-linear relationship and stability of CMI and MI's link. Moreover, to verify the robustness of the results, sensitivity analysis was conducted, with the MI status of subjects taking lipid-lowering drugs as the outcome variable. RESULTS: A total of 13,923 participants were gathered in this project, with 605 cases of MI, accounting for 3.5%. In the weighted logistic regression model, a positive linkage was observed between CMI and the risk of MI (OR: 1.41, 95% CI: 1.18-1.68, CONCLUSION: There is a significant positive linkage of CMI with MI risk, which is particularly significant in males, those with a BMI greater than 30 kg/m