The use of a drug-eluting stent (DES) in patients with acute myocardial infarction (AMI) treated with percutaneous coronary intervention is conventional. However, the effect of DES on new-onset atrial fibrillation (AF) after AMI still remains unclear.By using data from Taiwan's National Health Insurance Research Database, a total of 17,741 patients with ST-elevation myocardial infarction (STEMI) and 17,631 patients with non-ST-elevation myocardial infarction (NSTEMI) treated with percutaneous coronary intervention were analyzed to investigate the risk of new-onset AF after index admission of AMI.There were 26.5% (N = 4696) of patients with STEMI and 39.5% (N = 6967) of patients with NSTEMI received DES implantation. Upon 1-year follow-up, we observed that DES placement was associated with a reduced 1-year risk of new-onset AF in the patients with NSTEMI (adjusted hazard ratio [aHR] = 0.74, 95% confidence interval [CI] = 0.59-0.93, P = .009) after adjustment for clinical relevant variables. This benefit was consistent with that in the patients with NSTEMI who were ≥75 years old, had a CHA2DS2-VASc score of ≥2, and did not receive intra-aortic balloon pump insertion (aHR = 0.72, 95% CI = 0.53-0.98, P = .039; aHR = 0.73, 95% CI = 0.586-0.92, P = .006; and aHR = 0.71, 95% CI = 0.56-0.90, P = .004; respectively). However, DES placement had a neutral effect on the risk of new-onset AF in the patients with STEMI.Compared with the use of BMS, the use of DES might reduce the risk of new-onset AF in patients with NSTEMI.