The narrative opens in Agra, India, with a fateful confusion of two infants born around the same time: one the son of Captain Clinton, a wealthy officer, and the other the child of Sergeant Humphreys. Due to the negligence and potential scheming of Jane Humphreys, the babies' identities become inextricably mixed. Unwilling to accept the uncertainty, Captain Clinton adopts both boys as his own, resolving to raise them equally until natural resemblances or distinct traits reveal their true parentage. As the boys grow into capable, athletic young men at Cheltenham, they remain unaware of the cloud hanging over their origin, sharing a deep brotherly bond while their parents quietly abandon the wish to ever solve the riddle.
Years later, a chance encounter shatters this peace. Jane Humphreys reappears and reveals the truth to Edgar, offering to manipulate the facts for financial gain. Horrified by the deception and unwilling to partake in a fraudulent usurpation of his brother Rupert's birthright, Edgar flees into the world.
He makes his way to London and eventually enlists in the army under an assumed name, determined to build a life entirely on his own merits. The novel shifts to the dramatic historical campaign of the Nile Expedition, where Edgar serves with distinction, displaying exceptional bravery and earning the admiration of his superiors, including Major Horsley. Meanwhile, back at home and across the military ranks, the search for Edgar continues amidst the shifting tides of war. Sergeant Humphreys, now serving in the same regiment, unexpectedly crosses paths with Edgar, realizing his true identity without initially exposing him to the broader world. The story builds toward a powerful reconciliation of duty and familial ties, contrasting the rigid demands of military honor with the deep, enduring bonds of affection that transcend bloodlines and past mistakes.