In the statement, released on Wednesday, the two countries said terrorism remained a serious threat to the security of Afghanistan, the region, and the world.
Moscow and Beijing called on countries in the region and the international community to strengthen counter-terrorism cooperation with Afghanistan and to prevent the country's territory from being used to threaten the security of its neighbours.
The joint statement said that the two countries support Afghanistan's approach to eradicating terrorism and preventing its territory from being used to harm regional security.
Russia and China also announced that they are ready to increase their cooperation and coordination on Afghanistan at both the bilateral and multilateral levels. The two countries stressed the establishment of lasting order and security in Afghanistan as swiftly as possible.
In another part of the statement, Moscow and Beijing described the role of regional mechanisms as important in the political resolution of the Afghan issue. In this regard, they cited the role of the Moscow Format consultations on Afghanistan, the meeting of foreign ministers of Afghanistan's neighbouring countries, the regional quadrilateral group comprising Russia, China, Iran, and Pakistan, and the Shanghai Cooperation Organisation.
Afghanistan remains one of the central security concerns for countries in the region, particularly Russia and China. Since the Taliban's return to power, concerns over the presence and activities of terrorist groups on Afghan soil have repeatedly been raised by neighbouring countries and regional powers.
Russia is particularly sensitive to the activities of the Islamic State Khorasan branch and Central Asian extremist groups in Afghanistan. Moscow has repeatedly warned that instability in Afghanistan could threaten the security of Central Asia and extend to Russia's southern borders.
Russian officials have also expressed concern over the possibility of extremist fighters being transferred from the Middle East to Afghanistan, and the country being used as a sanctuary for radical groups.
China, too, has specific security concerns regarding Afghanistan. Beijing is worried that members of Uyghur separatist groups or other extremist movements could use Afghan soil to threaten the security of the Xinjiang region. For this reason, China has consistently stressed the need to prevent the use of Afghan soil against neighbouring countries.
Despite these concerns, Russia and China have maintained their political and diplomatic relations with the Taliban and are seeking to influence developments in Afghanistan through dialogue and regional mechanisms.
Despite the Taliban's close relations with Moscow and Beijing, the two countries' security concerns persist. Russia has recognised the Taliban government, but China, despite close relations and political engagement, has not yet taken such a step.