The British naturalist embarked on an extraordinary journey, did hundreds of experiments, and wrote for 20 years.