The chaos in Turkey is a matter of national security for the U.S. because of one thing — the fight against ISIS.
Turkey is a vital ally for the U.S. in that fight. It borders Syria and has given the U.S. access to some of its bases, allowing the U.S. to conduct more airstrikes against ISIS.
Turkey's also started to really put resources in the fight. Until recently, Turkey seemed more focused on fighting Kurdish militant groups closer to its borders, but multiple terrorist attacks attributed to ISIS have shifted Turkey's priorities.
SEE MORE: Turkey Is No Stranger To The Coup D'Etat
So the attempted coup couldn't come at a worse time. Even if it fails, a military just beginning to ramp up the fight against ISIS would then have to expend vital resources to make sure another uprising can't happen again.
And if he keeps his job, Turkey's president is likely to try to weaken the military's power to prevent any more challenges to his rule. Personnel purges will make the fight against ISIS tougher for both Turkey and the U.S.