The white whale, Moby Dick, lives in the end.
After searching for months, the Pequod finally spots the white whale and gives chase. This chase lasts for days as the ship closes in on the whale. Ultimately, the whale is harpooned (by Ahab) and turns to face its pursuer.
Attacking the ship, Moby Dick damages and sinks the Pequod killing everyone but Ishmael. Ishmael survives because he finds Quequeg's coffin, which has risen from the whirlpool created by the sinking ship. With this coffin, Ishmael is able to survive until he is rescued.
Ahab dies along with the rest of the crew, dragged down by the whale into the sea.