In 1841, a treaty was signed with Afghan chiefs to evacuate and restore Dost Mohammed.