Melville made Moby-Dick into an ambitious literary achievement that didn’t pay that much among his contemporaries. His unconventional taste was inspired by the quality of books he was reading. Specifically, Melville’s biggest influences were Nathaniel Hawthorne (which connects him to transcendentalism and unitarianism) and Shakespeare.

References

Kleon, A. (2018, October 2). The right book at the right time. Austin Kleon. https://austinkleon.com/2018/10/02/the-right-book-at-the-right-time/

Although it would prove financially disastrous, Melville felt pulled beyond writing what he knew would be popular with his contemporaries. (“What I most feel moved to write, that is banned, —it will not pay. Yet, altogether, write the other way I cannot.”) A lot of this feeling was exacerbated by the quality of the books he was reading. (Let that be a lesson to you: read the Big Dogs, and you might be doomed by your lit’ry ambitions!)

Coming to literature relatively late in life, Melville did so not with the reluctance of an unwilling recipient of some institutionally imposed reading-list, but with the wide-eyed eagerness of the autodidact, hungry for the resources of the world’s great books… Melville never made any mystery of his sources, passing them on (not showing them off) in the ‘Extracts’ with which Moby-Dick begins: the Bible, Montaigne, Shakespeare…. [T]he more he read, the more Melville wanted to emulate what he read… he wanted to find a way of writing that would enable him to meld together all that he found valuable in other works. And this, more or less, as his diaries and letters describe it, was the state of mind, the state of readiness, in which he sat down to write Moby-Dick: full to the brim with the world’s literature, in a state of something like intellectual frenzy.

Melville remains one of the best American examples of how every important writer is foremost an indefatigable reader of golden books, someone who kneels at the altar of literature not only for wisdom, sustenance, and emotional enlargement, but with the crucial intent of filching fire from the gods.