The party was formed in 1979 in Peshawar, Pakistan,[3] where Gailani had fled to following the rise to power of the communist PDPA in Afghanistan. The party was largely moderate and royalist, with ties to the former royal family.