India had invested in Afghanistan mainly out of good faith but also to reduce the influence of Pakistan and China.