 Complete the following phrase:  The modern state of Afghanistan began with the Hotak and Durrani dynasties in the 18th century. In the late 19th century, Afghanistan became a buffer state in the Great Game between British India and the Russian Empire. Following the Third Anglo-Afghan War in 1919, the country became free of foreign domice, eventually becoming the Kingdom of Afghanistan in June 1926 under King Amanullah. This kingdom lasted almost fifty years, until King Zahir was overthrown and a republic was established in July 1973. In 1978, after a second coup, Afghanistan became a socialist state, provoking the SovietAfghan War in the 1980s against mujahideen rebels. By 1996 most of Afghanistan was captured by the Islamic fundamentalist group, the Taliban, who ruled most of the country as a totalitarian regime for over five years. The Taliban were removed from power after the 