Moby Dick is a novel by American writer Herman Melville. Sailor Ishmael tells the story of the obsessive quest of Ahab, captain of the whaler the Pequod, for revenge on Moby Dick, the white whale that on the previous whaling voyage bit off Ahab's leg at the knee. The novel was a commercial failure and out of print at the time of the author's death in 1891, but during the 20th century, its reputation as a Great American Novel was established. William Faulkner confessed he wished he had written it himself, and D. H. Lawrence called it "one of the strangest and most wonderful books in the world", and "the greatest book of the sea ever written". "Call me Ishmael" is among world literature's most famous opening sentences. The product of a year and a half of writing, the book draws on Melville's experience at sea, on his reading in whaling literature, and on literary inspirations such as Shakespeare and the Bible. The white whale is modeled on the notoriously hard to catch actual albino whale Mocha Dick, and the ending is based on the sinking of the whaler Essex by a whale. The detailed and realistic descriptions of whale hunting and of extracting whale oil, as well as life aboard ship among a culturally diverse crew, are mixed with exploration of class and social status, good and evil, and the existence of God. In addition to narrative prose, Melville uses styles and literary devices ranging from songs, poetry, and catalogs to Shakespearean stage directions, soliloquies, and asides.