In the early 19th century, the British occupied the city but after establishing foreign relations they were compelled to withdraw all forces from Afghanistan. The city was occupied by the Soviets in 1979 but they too abandoned it after the 1988 Geneva Accords were signed. A civil war in the 1990s between various rebel groups destroyed much of the city, resulting in many casualties.
Kabul is known for its gardens, bazaars, and palaces. It was also formerly a mecca for young western hippies. Since the removal of the Taliban from power in late 2001, the city began rebuilding itself with assistance from the international community. Despite the many terrorist attacks by anti-state elements, the city is developing and was the fifth fastest-growing city in the world as of 2012. The city is divided into 22 districts.