Gunn was left behind on the island when the Hispaniola left for England, and he spent three years living there alone. During that time, he learned to survive on the island, building himself a shelter and finding food and water. He also found the stash of treasure that had been buried by Captain Flint, the notorious pirate who had once used Treasure Island as a hideout.