Most tribes were won over by bribes, and Dost Mohammed surrendered in 1840.