During the War of the Pacific, Harvey was captured at the Battle of San Francisco. Due to his expertise in the nitrate industry, he was recruited to work for the Chilean government. About this time he married Alida María Godefroy who was from a respected Franco-Peruvian family. In 1881, when the Chilean government privatized the nitrate industry, Harvey became managing partner for the firm of J. T. North and Harvey, which he had established with John Thomas North, who was often called the Nitrate King.