The novel is narrated by Ishmael, a restless schoolmaster-turned-sailor who goes to sea, he says, whenever the gloom grows heavy in him. In the whaling port of New Bedford he shares a bed with Queequeg, a tattooed harpooneer from the South Seas, and an unlikely friendship forms across every line of race and creed. Together they sail from Nantucket aboard the Pequod.
For much of the early voyage the captain stays hidden. When Ahab finally appears, his ivory leg and scarred face mark a man consumed by one purpose. On the quarter-deck he nails a gold coin to the mast and binds the crew with an oath: they will hunt Moby Dick, the white whale that took his leg, above any ordinary catch. Only the first mate Starbuck protests that vengeance on a dumb brute is madness.
Around this hunt Melville builds a vast, digressive account of whaling itself: its history, its labor, the anatomy and behavior of whales, the lore of the sea. Ishmael lingers especially on the whiteness of the whale and on how little the natural world finally reveals. These chapters slow the chase but deepen its meaning, turning the whale into something that cannot be fully grasped or named.
As the Pequod crosses the oceans it meets other ships, each encounter a warning Ahab refuses to heed, including a captain whose own son is lost to Moby Dick. In a late, quieter chapter Ahab almost turns back, moved by memory of wife and child, yet asks what nameless power drives him on against his own heart, and presses forward anyway.
The hunt ends in a three-day chase. Moby Dick smashes the boats, then the ship. Ahab, fast to the whale by his own harpoon line, is dragged under as the Pequod sinks and the sea closes over everything. Only Ishmael survives, buoyed by a coffin, floating alone until another ship, itself searching for its lost children, picks him up.