After surviving a great typhoon in the South China Sea, Captain Jack Aubrey, ship's surgeon Stephen Maturin, and the crew of the HMS Diane attempt to rebuild their ship to leave the small desert island where they have been shipwrecked.