At the beginning of the Soviet–Afghan War, he met Jalaluddin Haqqani in 1979 and later worked with him from 1980 until 1992. In 1986 he met Ayman al-Zawahiri in Peshawar. In 1988 he met Osama bin Laden and remained friends with him until his 2011 death.