During this period, Khadr worked with a number of charitable non-governmental organizations that served Afghan refugees and set up agricultural projects.[3] He set up two orphanages for children whose parents had been killed in the Soviet invasion of the 1980s. He funded the construction of Makkah Mukarama Hospital in Afghanistan with his own savings,[4][5][6] as well as seven medical clinics in the refugee camps of Pakistan.[7]