The article is devoted to the problem of the national security of Russia. The reasons that influenced the intensification of threats in connection with the events in Afghanistan are identified. The analysis of all the circumstances that caused the exacerbation of the situation in Afghanistan. The article convincingly shows that the main reason for the destabilization of the situation in Afghanistan was the ill-considered and poorly organized withdrawal of US and NATO troops from the country, which provoked a humanitarian catastrophe in the country. The author notes that over the 20 years of the US stay in Afghanistan, it has not been possible to solve urgent political and socio-economic problems, political stabilization has not occurred. The crisis worsened in the country, the official Afghan government, which held power for several decades with US military support, could not resist. The Taliban (banned in the Russian Federation) came to power in the country, with the support of the majority of the population, and in a non-military way. The author believes that it is now unclear whether the moderate Taliban, seeking to establish international contacts, will remain in power, or the radical terrorist Islamist elements of the Taliban movement (banned in the Russian Federation) will prevail, whose activities are to whip up a terrorist threat, impose radical Islamism, and spread drug trafficking, etc. Migration flows from Afghanistan will increase, among which suicide bombers can penetrate into other countries. All this is not only an internal affair of Afghanistan, but also poses a threat to overall international security. For the countries adjacent to Afghanistan — Russia, China, Iran, Pakistan, India, Central Asian countries and Turkey — a number of serious questions arose about the prospects for the development of the situation in Afghanistan, including significant threats to regional security: international terrorism, drug trafficking, organized crime, support for extremist and separatist movements from the territory of Afghanistan, encouragement of radical Islamists in neighboring countries with the victory of the Taliban (banned in the Russian Federation), etc. Russia is making every effort to establish constructive cooperation with neighboring countries and the United States in order to resolve the Afghan crisis.