In this study, we found that the variants of rs3918242 and rs3787268 in MMP‐9 gene were independent predictors for initial stroke severity, and rs1056628 AC/CC and rs3918242 CT/TT were independently associated with the higher risk of END after adjusting for covariates in IS patients with AF. The gene discussed is MMP9; the disease is atrial fibrillation.