After World War II

The country was neutral in World War II and pursued a policy of non-alignment in the cold war. Both the United States and the Soviet Union provided extensive economic aid. During 1953–63, under Premier Mohammed Daoud, a cousin of the king, modern industries were established, education was expanded, and, for the first time, women were permitted to obtain an education, to work, and to wear Western dress.

In 1964 Afghanistan became a constitutional monarchy with an elected parliament. In 1973, however, Mohammed Daoud overthrew the government and the monarchy and returned to rule as virtual dictator. He, in turn, was overthrown in 1978 by Marxist officers in the armed forces.

The new regime established close ties with the Soviet Union and attempted to impose Communism on the country. Groups of strongly religious and tradition-bound Afghans (known collectively as mujahidin) rebelled against the government. The inability of the government to defeat the mujahidin led to a coup by rival Communists in September, 1979. They, in turn, were overthrown in December in a coup engineered by the Soviet Union, which installed a puppet leader, Babrak Karmal, and brought in some 120,000 troops to help put down the rebellion. Fighting continued as the mujahidin, aided by the United States, waged a guerrilla war against the Soviets and pro-Soviet Afghans. Driven by famine and civil war, many people fled the country; by the late 1980's about 5 million had left.

In 1986, the Soviets replaced Karmal with a new leader, Mohammed Najibullah. During 1988–89, the Soviet Union withdrew all of its troops. In 1990, Najibullah abandoned Marxism-Leninism. The mujahidin, however, continued its guerrilla campaign against the government. In 1992, the mujahidin captured Kabul and established an Islamic republic. To that end, alcohol was banned, the death penalty was introduced, and strict Islamic dress for women was reinforced. Fighting then broke out between various mujahidin groups. One group, known as the Taliban, emerged as the most powerful, having captured nearly two-thirds of the country, including Kabul, by 1996. The Taliban established a Council of Ministers to run the country and imposed an even stricter Islamic code. The new measures included outlawing the education and employment of women and introducing amputations and public stonings as forms of punishment.

In 1998, the United States launched limited air strikes against terrorist camps in Afghanistan in retaliation for the bombings of two U.S. embassies in Africa. The bombings had been organized with the help of Osama bin Laden, a Saudi exile harbored by the Taliban. Bin Laden was also the leader of Al Qaeda, an Islamic terrorist network.

By the end of 2000, the Taliban controlled more than 90 per cent of the country, but groups opposed to the Taliban, such as the Northern Alliance, had strongholds in the north. Continued fighting worsened the effects of a severe drought and famine.

In September 2001, the United States government demanded that the Taliban relinquish Osama bin Laden, who was suspected of organizing the terrorist attacks of September 11, 2001, against the United States. These attacks included the hijacking of four aircraft, two of which were flown into the twin towers of the World Trade Center in New York City, causing their collapse. The Taliban refused the demands of the United States. In October, the United States and its allies, including the Northern Alliance, began a sustained military campaign against the Taliban and against Al Qaeda forces in Afghanistan.

By the end of November 2001, the Taliban had been removed from power and replaced with an interim government, led by Hamid Karzai. The government was charged with, among other things, maintaining peace and security within Afghanistan until a national council could be elected and democratic elections could be held. In national elections held in 2004 after the adoption of a new constitution for the country, Karzai was elected president. Despite progress with forming the new government, clashes between regional and ethnic rivals continued throughout the country, contributing to its instability. Crucial support for the new government was being provided by the United Nations.

In August 2009, Afghanistan held a presidential election and Karzai received the most votes. However, many voting irregularities were found, leading to a runoff election being scheduled. Before the election, Karzai's opponent withdrew. Election officials declared that Karzai had won the presidency.