It was established in the 1980s as the Soviet Union invaded Afghanistan. It was funded by the U.S. for a while, as they were fighting communists. The late 70s invasion of Afghanistan by the Soviet Union was a proxy war between the U.S. and U.S.S.R., respectively. It was established as a group fighting against foreign invaders, and over time, it became more and more religiously centered.