He was sent to the United States to represent the political administration supported by the Soviet Union.
As the ambassador to the United Nations, Ghafoorzai thought it his duty to call on global partners to denounce the Soviet invasion in 1979.
When the communist government fell in 1992, Ghafoorzai acted as an intermediary to unite the contending factions.
The international community, other than Pakistan, the United Arab Emirates and Saudi Arabia, did not recognize the Taliban as Afghanistan's legitimate government.
Just ten days before his death, he was appointed prime minister of the Islamic State of Afghanistan government.