The boys are rescued in the final chapter of the novel, when a British battleship anchors off the shore of the tropical island after witnessing the entire island on fire, which was caused by Jack and his savages while they were hunting Ralph. At the beginning of the story, the boys' plane is shot out of the sky and crash lands on an uninhabited tropical island. Since the plane flew off its course and the boys landed on an uninhabited island, there is no way of being immediately rescued. However, the boys manage to build a signal fire on the top of the mountain in hopes of attracting a passing ship. Unfortunately, Jack dismisses his savages from their duties of maintaining the signal fire in order to join a hunt, and the signal fire goes out before a ship sails past the island. The boys miss a rare opportunity for rescue because the signal fire went out, and they spend the rest of the novel unsuccessfully attempting to establish a civilized society. In chapter 12, Jack and his savages are hunting Ralph, who happens to stumble onto the beach, where he sees a British naval officer. The British officer's presence is a sort of deus ex machina, and the boys are quickly rescued.