||In 1747 Afghanistan liberates itself from the Empire of the Great Mogul. The State of Afghanistan is formed and Ahmad Shah Durrani establishes his rule. Throughout his reign, Durrani consolidates chieftainships, petty principalities and fragmented provinces into one country. His rule extends from Mashad in the west to Kashmir and Delhi in the east, and from the Amu Darya (Oxus) River in the north to the Arabian Sea in the south. From time to time separate Afghan states are installed in Kandahar and Herat. Though the country is united sincethen, it has to accept after the second Anglo-Afghan war (1878-80), that brings Amir Abdur Rahman to the throne, a British protectorate in 1881. The British retain effective control over Kabul's foreign affairs.
After the third Anglo-Afghan war in 1919, Britain relinquishes its control over Afghan foreign affairs by signing the Treaty of Rawalpindi. This means full independence of Afghanistan and the establishment of a more or less constitutional monarchy. King Amanullah (1919-29) renames the country Kingdom of Afghanistan in 1926 and introduces modernization and secularization. This leads to his assassination and a short civil war. In 1929 Nadir Shah becomes king. Four years later, however, he is assassinated in a revenge killing by a Kabul student.
In 1933 Mohammed Zahir Shah becomes king. He introduces in 1964 a liberal constitution providing for a two-chamber legislature to which the king appointed one-third of the deputies. The people elected another third, and the remainder were selected indirectly by provincial assemblies. He permits a multi-party system. This leads to the formation of the communist Hizb-i-Democratic-i-Khalq (People's Democratic Party, HDK), which had close ideological ties to the Soviet Union. In 1967, the PDPA split into two major rival factions: the Khalq (Masses) faction headed by Noo Mohammad Taraki and Hafizullah Amin and supported by elements within the military, and the Parcham (Banner) faction led by Babrak Karmal. After a coup d'état in 1973 Afghanistan becomes a dictatorial republic and is renamed Republic of Afghanistan. Mohammed Daoud Khan, until that moment prime minister, becomes president.
In 1978 the HDK seizes power and a communist dictatorship is established under the HDK, lead by Noor Mohammed Tarraki (1978-1979). The country is renamed Democratic Republic of Afghanistan. When Taraki is assasinated in 1979 he is succeeded by Hafizullah Amin (1979). At that moment the USSR invades the country and installs after the assasination of Amin Babrak Karmal as new president. Islamic factions start a guerilla war against the regime and the soviet-occupation. In an attempt to moderate Afghanistan is renamed into Republic of Afghanistan in 1987. Karmal is replaced by Mohammed Najibullah in 1986.
In 1990 the Islamic mujaheddin (Holy Warriors) expel the communist dictatorship. Though a central government is installed, de facto the country is ruled by warlords. In 1992 the central government renames the country into the Islamic State of Afghanistan. Burhanuddin Rabbani becomes president. The civil war continues and in 1996 the Taleban movement of spiritual leader Mullah Mohammad Omar seizes power in most of the country. Afghanistan becomes a theocratic dictatorship and is renamed Islamic Emirate of Afghanistan. Mullah Mohammad Rabbani is appointed president.
After an invasion by the United States in 2001, followed by a popular uprising, the dictatorship collapses. Afghanistan gets a transition governement and is renamed Islamic State of Afghanistan. Burhanuddin Rabbani resumes office, but the same year he is succeeded by Hamid Karzai. In 2004 a new constitution is accepted, identifying Afghanistan as an "Islamic Republic." The constitution paves the way for nationwide presidential and parliamentary elections to be held in june 2004. The government's authority beyond the capital, Kabul, is slowly growing, although its ability to deliver necessary social services remains largely dependent on funds from the international donor community.