Buddhism in Afghanistan first arrived in present-day Afghanistan through the conquests of the Mauryan King Ashoka (r. 268-232 BCE), where the remains of an inscription in Kandahar written in 260 BCE were found on the rocky outcrop of Chil Zena. The religion was widespread south of the Hindu Kush mountains.
Lokaksema (c. 178 AD), who travelled to the Chinese capital of Luoyang and was the first translator of Mahayana Buddhist scriptures into Chinese, and Mahadharmaraksita who, according to the Mahavamsa (Chap. XXIX), led 30,000 Buddhist monks from "the Greek city of Alasandra" (Alexandria of the Caucasus, around 150 km north of today's Kabul in Afghanistan), to Sri Lanka for the dedication of the Great Stupa in Anuradhapura. The Greco-Bactrian King Menander I, (Pali) "Milinda," ruled 165 BC - 135 BC, was a renowned patron of Buddhism immortalized in the Buddhist text the Milinda Panha.
The famous Persian Buddhist monastery in Balkh in northern Afghanistan, known as Nava Vihara ("New Monastery"), functioned as the center of Central Asia Buddhist learning for centuries.
The Buddhist religion in Afghanistan started fading with the Muslim conquest in the 7th century and saw further decline during the Ghaznavid era in the 11th century. Buddhism was eliminated in the 13th century during the Mongols conquests, with no further mention of a Buddhist presence in the area past the 14th century.
The territory within the borders of Afghanistan has seen many cultural and religious shifts over the centuries. The geographical position of the area between the Middle East, South Asian, and Central Asian cultures, and the proximity to the famous Silk Road (connecting East Asian and Mediterranean civilizations, and others in between), have been major drivers of local historical and cultural developments. One major influence was the conquest of the area by Alexander the Great, which incorporated the area for a time into the Hellenistic World, and resulted in a strong Hellenistic influence on Buddhist religious art in that region. In 305 BC, the Seleucid Empire made an alliance with the Indian Maurya Empire. The Mauryans brought Buddhism from India and controlled the area south of the Hindu Kush until about 185 BC when they were overthrown.
Alexander took these away from the Aryans and established settlements of his own, but Seleucus Nicator gave them to Sandrocottus (Chandragupta), upon terms of intermarriage and of receiving in exchange 500 elephants.— Strabo, 64 BC – 24 AD
At the time of these developments, most of the area belonged to the kingdoms of Bactria and Sogdiana, including the Scythians, followed Buddhism until the arrival of Islam.
After the Mauryan Empire, Buddhism also flourished under the Kushan Empire, when a tribe called the Yuezhi entered the region of modern day Afghanistan. Many monuments testify to the Buddhist culture in present-day Afghanistan. Additional historical detail can be researched under Pre Islamic Hindu and Buddhist heritage of Afghanistan and Hinduism in Afghanistan.
Soon after the Sassanian Persian dynasty fell to the Muslims (in 651 AD), the Nava Vihara monastery in Balkh came under Muslim rule (in 663 AD), but the monastery continued to function for at least another century. In 715 AD, after an insurrection in Balkh was crushed by the Abbasid Caliphate, many Persian Buddhist monks fled east along the Silk Road to the Buddhist Kingdom of Khotan, which spoke a related Eastern Iranian language, and onward into China. Nava Vihara's hereditary administrators, the Persian Barmakids, converted from Buddhism to Islam after the monastery's conquest and became powerful viziers under the Abbassid caliphs of Baghdad. The last of the family's line of viziers, Ja'far ibn Yahya, is a protagonist in many tales from the Arabian Nights. In folktales and popular culture Ja'far has been associated with a knowledge of mysticism, sorcery, and traditions lying outside the realm of Islam.
The Buddhist religion survived the Islamic conquest of Afghanistan by the Umayyads and rule by the Abbasid Caliphate. Buddhism in Afghanistan was effectively destroyed in the 13th century by Mongol armies during the Mongol conquests.
One of the early Buddhist schools, the Mahāsāṃghika-Lokottaravāda, were known to be prominent in the area of Bamiyan. The Chinese Buddhist monk Xuanzang visited a Lokottaravāda monastery in the 7th century CE, at Bamiyan, Afghanistan, and this monastery site has since been rediscovered by archaeologists. Birchbark and palm leaf manuscripts of texts in this monastery's collection, including Mahāyāna sūtras, have been discovered at the site, and these are now located in the Schøyen Collection. Some manuscripts are in the Gāndhārī language and Kharoṣṭhī script, while others are in Sanskrit and written in forms of the Gupta script. Manuscripts and fragments that have survived from this monastery's collection include the following source texts:
In August 2010, it was reported that approximately 42 Buddhist relics have been discovered in Mes Aynak of the Logar Province in Afghanistan, which is south of Kabul. Some of these items date back to the 2nd century according to Archaeologists. Some Buddhist sites were found in Ghazni. The items in Logar include two Buddhist temples (Stupas), Buddha statues, frescos, silver and gold coins and precious beads.
The Yuezhi people conquered Bactria in the second century BCE. and divided the country into five chiefdoms, one of which would become the Kushan Empire. Recognizing the importance of unification, these five tribes combined under the one dominate Kushan tribe, and the primary rulers descended from the Yuezhi.