Melville had already built a successful reputation as a true-life adventure writer by the time he began work on Moby-Dick.