Rabbani fought the Soviet Union after it invaded Afghanistan in 1979. When the Soviet Union withdrew from Afghanistan in 1989, he initially stopped fighting. He joined the Taliban in 1994. After years of civil war, he led the Taliban guerrillas in the final assault against the capital, Kabul.