Charles Ogier de Batz de Castelmore, Comte d'Artagnan (c. 1611 – 25 June 1673) served Louis XIV as captain of the Musketeers of the Guard, and died at the Siege of Maastricht in the Franco-Dutch war. A fictionalized account of his life by Gatien de Courtilz de Sandras formed the basis for the d’Artagnan Romances of Alexandre Dumas, most famously including The Three Musketeers. The heavily fictionalized version of d'Artagnan featured in Dumas' works and their subsequent screen adaptations is now far more widely known than the real historical figure.
D'Artagnan was born near Lupiac in south-western France. His father was the son of a newly ennobled merchant, who purchased the castle of Castelmore. Charles went to Paris in the 1630s, using the name of his mother, Françoise de Montesquiou d’Artagnan, daughter of an illustrious family. D'Artagnan found a way to enter into the Musketeers in 1632 through the support of his uncle, Henri de Montesquiou, Comte d'Artagnan, father of the field marshal Pierre de Montesquiou d’Artagnan, or perhaps thanks to the influence of Henri's friend, Monsieur de Tréville. While in the Musketeers, d'Artagnan sought the protection of the influential Cardinal Mazarin, France's principal minister since 1643. In 1646, the Musketeers company was dissolved, but d'Artagnan continued to serve his protector Mazarin.
D'Artagnan had a career in espionage for Mazarin. Due to d'Artagnan's faithful service during this period, Louis XIV entrusted him with many secret and delicate situations that required complete discretion. He followed Mazarin during his exile in 1651 in the face of the hostility of the aristocracy. In 1652 d'Artagnan was promoted to lieutenant in the Gardes Françaises, then to captain in 1655. In 1658, he became a second lieutenant in the newly reformed Musketeers. This was a promotion, as the Musketeers were far more prestigious than the Gardes-Françaises.
D'Artagnan was famous for his connection with the arrest of Nicolas Fouquet. Fouquet was Louis XIV's finance commissioner and aspired to take the place of Mazarin as the King's advisor. Fouquet was also a lover of grand architecture and employed the greatest architects and artisans in the building of his chateau. He celebrated the completion with a most extravagant feast, at which every guest was given a horse. The king however felt upstaged by the grandeur of the home and event and, suspecting that such magnificence could only be explained through Fouquet's pilfering the royal treasury. Three weeks later d'Artagnan arrested Fouquet. To prevent his escape by bribery, d'Artagnan was assigned to guard him for four years until Fouquet was sentenced to life imprisonment.
In 1667, d'Artagnan was promoted to captain-lieutenant of the Musketeers, the effective commander as the nominal captain was the King. As befitted his rank and position, he could be identified by his striking burgundy, white and black livery—the colours of the commanding officer of the Musketeers. Another of d'Artagnan's assignments was the governorship of Lille, which was won in battle by France in 1667. D'Artagnan was an unpopular governor and longed to return to battle. He found his chance when Louis XIV went to war with the Dutch Republic in the Franco-Dutch War. After being recalled to service, d'Artagnan was subsequently killed in battle on June 25, 1673, when a musket ball tore into his throat at the Siege of Maastricht. The French historian Odile Bordaz believes that he was buried in Saint Peter and Paul Church in Wolder, the Netherlands, a village that belongs to Maastricht today.