In The Three Musketeers, young nobleman d'Artagnan leaves for Paris to join the Musketeers, an elite royal guard. He has many mishaps along the way, and ends up dueling Porthos, Athos, and Aramis before becoming their friend; the four are then swept up in a plot involving the scheming Cardinal Richelieu, the Queen of France, and the beautiful spy Milady de Winter. The novel explores the themes of loyalty, chivalry, nobility, and honor.
In 1625 France, d'Artagnan (a poor young nobleman) leaves his family in Gascony and travels to Paris to join the Musketeers of the Guard. At an inn in Meung-sur-Loire, an older man derides d'Artagnan's horse. Insulted, d'Artagnan demands a duel. The older man's companions beat d'Artagnan unconscious with a cooking pot and a metal tong that breaks his sword. His letter of introduction to Monsieur de Tréville, the commander of the Musketeers, is also stolen. D'Artagnan resolves to avenge himself upon the man (who is later revealed to be the Comte de Rochefort, an agent of Cardinal Richelieu, who is passing orders from the Cardinal to his spy Lady de Winter, usually called Milady de Winter or simply Milady).
In Paris, d'Artagnan visits De Tréville at the headquarters of the Musketeers, but without the letter, De Tréville politely refuses his application. He does, however, write a letter of introduction to an academy for young gentlemen which may prepare him for recruitment at a later time. From De Tréville's window, d'Artagnan seesRochefort passing in the street below and rushes out of the building to confront him, but in doing so he offends three Musketeers, Athos, Porthos and Aramis, who each demand satisfaction; D'Artagnan must fight a duel with all of them that afternoon. As d'Artagnan prepares himself for the first duel,he realizes that Athos' seconds are Porthos and Aramis, who are astonished that the young Gascon intends to duel them all. As d'Artagnan and Athos begin, Cardinal Richelieu's guards appear and try to arrest d'Artagnan and the three Musketeers for illegal dueling. Although outnumbered, the four menwin the battle. D'Artagnan seriously wounds Jussac, one of the Cardinal's officers and a renowned fighter. After learning of this, King Louis XIII appoints d'Artagnan to Des Essart's company of the King's Guards and gives him forty pistoles .
D'Artagnan hires a servant (Planchet), finds lodgings, and reports to Monsieur des Essart. Des Essart's company is a less prestigious regiment in which he must serve for two years before being considered for the Musketeers. Shortly after, his landlord speaks to him about his wife Constance Bonacieux's kidnapping. When she is presently released, d'Artagnan falls in love at first sight with her. She works for Queen Anne of France, who is secretly conducting an affair with the Duke of Buckingham. The King, Louis XIII, gave the Queen a gift of diamond studs but she gives them to her lover as a keepsake. Cardinal Richelieu, who wants war between France and England, plans to expose the tryst and persuades the King to demand the Queen wear the diamonds to a soirée that the Cardinal is sponsoring. Constance tries to send her husband to London but the man is manipulated by Richelieu and does not go, so d'Artagnan and his friends intercede. En route, the Cardinal's henchmen repeatedly attack them and only d'Artagnan and Planchet reach London. Before arriving, d'Artagnan is compelled to assault and nearly kill the Comte de Wardes, a friend of the Cardinal, cousin of Rochefort and Milady's lover. Although Milady stole two of the diamond studs, the Duke of Buckingham provides replacements while delaying the thief's return to Paris. D'Artagnan is thus ableto return a complete set of jewels to Queen Anne just in time to save her honour. In gratitude, she gives him a beautiful ring.
Shortly afterwards, d'Artagnan begins an affair with Madame Bonacieux. Arriving for an assignation, he sees signs of a struggle and discovers that Rochefort and M. Bonacieux, acting under the orders of the Cardinal, have assaulted and imprisoned her. D'Artagnan and his friends, now recovered from their injuries, return to Paris. D'Artagnan meets Milady de Winter officially, and recognizes her as one of the Cardinal's agents, but becomes infatuated with her until her maid reveals that Milady is indifferent toward him. Entering her quarters in the dark, he pretends to be the Comte de Wardes and trysts with her. He finds a fleur-de-lis branded on Milady's shoulder, marking her as a felon. Discovering his identity, Milady attempts to kill him but d'Artagnan eludes her. He is ordered to the Siege of La Rochelle.
He is informed that the Queen has rescued Constance from prison. In an inn, the musketeers overhear the Cardinal asking Milady to murder the Duke of Buckingham, a supporter of the Protestant rebels at La Rochelle who has sent troops to assist them. Richelieu gives her a letter that excuses her actions as under orders from the Cardinal himself, but Athos takes it. The next morning, Athos bets that he, d'Artagnan, Porthos, and Aramis, and their servants can hold the recaptured St. Gervais bastion against the rebels for an hour, for the purpose of discussing their next course of action. They resist for an hour and a half before retreating, killing 22 Rochellese in total. They warn Lord de Winter and the Duke of Buckingham. Milady is imprisoned on arrival in England but seduces her guard, Felton (a fictionalization of the real John Felton), and persuades him to allow her escape and to kill Buckingham himself. On her return to France, Milady hides in a convent where Constance is also staying. The naive Constance clings to Milady, who sees a chance for revenge on d'Artagnan, and fatally poisons Constance before d'Artagnan can rescue her. The Musketeers arrest Milady before she reaches Cardinal Richelieu. They bring an official executioner, put her on trial and sentence her to death. After her execution, the four friends return to the siege of La Rochelle. The Comte de Rochefort arrests d'Artagnan and takes him to the Cardinal. When questioned about Milady's execution, d'Artagnan presents her letter of pardon as his own. Impressed with d'Artagnan's willfulness and secretly glad to be rid of Milady, the Cardinal destroys the letter and writes a new order, giving the bearer a promotion to lieutenant in the Tréville company of musketeers, leaving the name blank. D'Artagnan offers the letter to Athos, Porthos and Aramis in turn but each refuses it, Athos because it is below him, Porthos because he is retiring to marry his wealthy mistress and Aramis because he is joining the priesthood. D'Artagnan, though heartbroken and full of regrets, gets the promotion he coveted.