A suicide attack on a mosque in Heart, Afghanistan kills 20 people.

Afghanistan, officially the Islamic Emirate of Afghanistan, is a landlocked country located at the crossroads of Central and South Asia. Referred to as the Heart of Asia, it is bordered by Pakistan to the east and south, Iran to the west, Turkmenistan to the northwest, Uzbekistan to the north, Tajikistan to the northeast, and China to the northeast and east. Occupying 652,864 square kilometers (252,072 sq mi) of land, the country is predominantly mountainous with plains in the north and the southwest, which are separated by the Hindu Kush mountain range. As of 2021, its population is 40.2 million, composed mostly of ethnic Pashtuns, Tajiks, Hazaras, and Uzbeks. Kabul is the country's largest city and serves as its capital.

Human habitation in Afghanistan dates back to the Middle Paleolithic era, and the country's strategic location along the historic Silk Road has led it to being described, picturesquely, as the roundabout of the ancient world. Known as the Graveyard of Empires, the land has historically been home to various peoples and has witnessed numerous military campaigns, including those by Alexander the Great, the Maurya Empire, Arab Muslims, the Mongols, the British, the Soviet Union, and most recently by an American-led coalition. Afghanistan also served as the source from which the Greco-Bactrians and the Mughals, among others, rose to form major empires. The various conquests and periods in both the Iranian and Indian cultural spheres made the area a center for Zoroastrianism, Buddhism, Hinduism, and later Islam throughout history.The modern state of Afghanistan began with the Durrani dynasty in the 18th century, with the Durrani Afghan Empire being formed by Ahmad Shah Durrani. The Durrani Empire led conquests in which, at its peak, encompassed land that spanned from eastern Iran to northern India. Following its decline and the death of Ahmad Shah Durrani, and Timur Shah, it was divided into multiple smaller independent kingdoms, including but not limited to: Herat, Kandahar and Kabul. Afghanistan would be reunited in the 19th century after wars of unification led by Dost Mohammad Khan, where he conquered the independent principalities in Afghanistan. Dost Mohammad died in 1863, weeks after his last campaign to unite Afghanistan, and as a result, threw Afghanistan back into civil war with his successors. During this time, Afghanistan became a buffer state in the Great Game between the British Empire (in British-ruled India) and the Russian Empire. From India, the British attempted to subjugate Afghanistan but were repelled in the First Anglo-Afghan War. However, the Second Anglo-Afghan War saw a British victory and the successful establishment of British political influence over Afghanistan. Following the Third Anglo-Afghan War in 1919, Afghanistan became free of foreign dominance, and eventually emerged as the independent Kingdom of Afghanistan in June 1926 under Amanullah Khan. This monarchy lasted almost 50 years, until Zahir Shah was overthrown in 1973, following which the Republic of Afghanistan was established. Since the late 1970s, Afghanistan's history has been dominated by extensive warfare, including coups, revolutions, invasions, insurgencies, and civil wars. Due to the effects of war, the country has dealt with high levels of terrorism, poverty, and child malnutrition. Afghanistan's economy is the world's 96th-largest, with a gross domestic product (GDP) of $72.9 billion by purchasing power parity; the country fares much worse in terms of per-capita GDP (PPP), ranking 169th out of 186 countries as of 2018.

In 2021, Afghanistan was captured by the Taliban, which marked the end of the 20012021 war, the longest war in US history. This led to the overthrowing of the Islamic Republic of Afghanistan under President Ashraf Ghani and reinstating the Islamic Emirate of Afghanistan under the control of the Taliban. The USTaliban deal, signed on 29 February 2020 in Qatar, was one of the critical events that caused the collapse of the Afghan National Security Forces (ANSF). Following the deal, the US dramatically reduced the number of air attacks and deprived the ANSF of a critical edge in fighting the Taliban insurgency, leading to the Taliban takeover of Kabul. Soon after, former first vice president Amrullah Saleh declared himself the caretaker president of Afghanistan and announced the resistance against the Taliban.Afghanistan is prominently rich in natural resources. Those resources include lithium, iron, zinc, and copper, amongst many others. It is also the largest producer of opium. The country is a founding member of the Organisation of Islamic Cooperation.

A suicide attack is any violent attack, usually entailing the attacker detonating an explosive where the attacker has accepted their own death as a direct result of the attacking method used. Suicide attacks have occurred throughout history, often as part of a military campaign (as with the Japanese kamikaze pilots of 1944–1945 during World War II), and more recently as part of terrorist campaigns (such as the September 11 attacks in 2001).

While few, if any, successful suicide attacks took place anywhere in the world from the end of World War II until 1980, between 1981 and September 2015 a total of 4,814 suicide attacks occurred in over 40 countries, killing over 45,000 people. During this time the global rate of such attacks grew from an average of three a year in the 1980s to about one a month in the 1990s to almost one a week from 2001 to 2003 to approximately one a day from 2003 to 2015.Suicide attacks tend to be more deadly and destructive than other terror attacks because they give their perpetrators the ability to conceal weapons, make last-minute adjustments, and they do not require remote or delayed detonation, escape plans or rescue teams. They constituted only 4% of all terrorist attacks around the world over one period (between 1981 and 2006), but caused 32% of all terrorism-related deaths (14,599). Ninety percent of those attacks occurred in Afghanistan, Iraq, Israel, the Palestinian territories, Pakistan, and Sri Lanka. Overall, as of mid-2015, about three-quarters of all suicide attacks occurred in just three countries: Afghanistan, Pakistan, and Iraq.Suicide attacks have been described (by W. Hutchinson) as a weapon of psychological warfare to instill fear in the target population, a strategy to eliminate or at least drastically diminish areas where the public feels safe and the "fabric of trust that holds societies together", as well as to demonstrate the lengths to which perpetrators will go to achieve their goals.Suicide attackers may have various motivations. Kamikaze pilots acted under military orders, while other attacks have been perpetrated for religious or nationalist purposes. Before 2003, most attacks targeted forces occupying the attackers' homeland, according to analyst Robert Pape. Anthropologist Scott Atran states that since 2004 the ideology of Islamist martyrdom has motivated the overwhelming majority of bombers.