He tells Jim that, when everyone found the ship was gone, the captain's party agreed to a treaty whereby they gave up the stockade and the map. In the morning Dr. Livesey arrives to treat the wounded and sick pirates, and tells Silver to look out for trouble when they find the site of the treasure. After he leaves, Silver and the others set out with the map, taking Jim along. Eventually they find the treasure cache — empty. Two of the pirates charge at Silver and Jim, but are shot down by Livesey, Gray, and Ben Gunn, from ambush. The other three run away, and Livesey explains that Gunn has long ago found the treasure and taken it to his cave.
In the next few days they load the treasure onto the ship, abandon the three remaining mutineers (with supplies and ammunition) and sail away. At their first port, where they will sign on more crew, Silver steals a bag of money and escapes. The rest sail back to Bristol and divide up the treasure. Jim says there is more left on the island, but he for one will not undertake another voyage to recover