The narrative opens in the bleak Yorkshire village of Scarcombe, where a wandering musician dies suddenly, leaving behind his five-year-old son, Will. The boy is adopted by a kindly fisherman named John Hammond and grows up amid the rough ways of coastal life and local smuggling. Guided by the village clergyman's daughter, Will receives an education that sets him apart from his peers. When he learns that smuggling is unlawful, he refuses to act as a watcher, drawing the bitter hostility of the village and forcing him to take refuge at the local coast-guard station. There, he resolves to enter the king's service, accompanied by his loyal friend Tom Stevens, who insists on sharing his fate.
After a brief stay on a receiving ship, the two boys are assigned to the Furious, a thirty-four-gun frigate commanded by a dashing officer. Will's intelligence, courage, and eagerness to learn navigation quickly catch the attention of his superiors. During his very first climb aloft, he ascends to the top-gallant cap without using the lubbers' hole, earning the respect of the crew. He easily defeats a local bully who provokes him, cementing his position among the boys. The frigate soon sails for foreign waters, where she captures a fifty-gun French ship after a sharp engagement and later shatters a piratical stronghold on the African coast. In the latter fight, Will saves the life of the first lieutenant and is rewarded with a midshipman's commission.
Following his promotion, Will is entrusted with independent commands and takes part in brilliant actions against pirates in the West Indies. He rescues passengers from a sinking ship, captures two pirate vessels simultaneously, and uncovers a massive hoard of plunder at a hidden pirate base. After accumulating substantial prize-money and surviving a devastating hurricane, he returns to England as a seasoned officer. The story concludes with a nostalgic visit to his old home in Scarcombe, where he ensures the comfort of his foster parents, demonstrating that true character and perseverance can rise above the humblest beginnings.