By late 1692, Maria Antonia of Austria was gone, and the imperial household in Vienna had already set in motion the familiar, deliberate process of succession that followed every Hapsburg death. She was twenty-three. Seven years of marriage had given her three sons, two of whom she buried before they could walk. The third, Joseph Ferdinand, was just eight weeks old when she died on Christmas Eve inside the Hofburg Palace—the very building in which she had come into the world.

Most accounts name puerperal fever as the official cause, an infection that no doctor in Vienna had the means to cure. On Christmas Day she was laid to rest in the Imperial Crypt next to her mother. Both coffins remain there to this day, beneath the Capuchin Church in Vienna. Two women, a mother and her daughter, each dead in her early twenties, each worn down by years of childbearing, each leaving behind a single child who lived.
The story of that dynasty had been carefully constructed for close to two centuries before Maria Antonia took her first breath. Hapsburgs wed uncles to nieces and cousins to cousins so that their crowns would never pass outside the family. And in January 1669, that design yielded a girl in Vienna who would grow up, marry, and bear children—none of which her uncle Charles II of Spain could ever accomplish. When geneticists studied her family tree three hundred years later, they arrived at a figure higher than the one produced by sibling incest.
Her name was Maria Antonia. When she was born in the Hofburg that January, a small coffin was already as much a fixture of the household as any piece of furniture. Her parents’ first child, a young archduke, had died almost a year before her arrival, at less than four months old. Her father was Emperor Leopold I, ruler of the Holy Roman Empire.
Her mother was Margarita Teresa of Spain. Leopold was Margarita’s uncle—the younger brother of her mother—which made the man who fathered Maria Antonia at once her father and her father’s uncle. Through Margarita’s father, her parents were also first cousins. And the entanglement reached back further still.
Margarita’s own parents, King Philip IV of Spain and Mariana of Austria, were themselves an uncle and his niece. One couple, Emperor Ferdinand III and his Spanish wife, turned up twice in the child’s family tree: once as grandparents on her father’s side, and again as grandparents to her mother’s parents. The family had arranged this on purpose. Marrying within the family kept Spain, Austria, and every claim attached to them in Hapsburg hands.
With every generation, the circle of people permitted to marry one another drew a little tighter. In this story, the first to bear the cost was the child’s mother. In 1656, when Margarita was five years old, Diego Velázquez painted her standing in a room of the royal palace in Madrid. That painting is *Las Meninas*.
If your eye travels past the small blond girl to the mirror on the far wall, you can make out her parents—the king and his niece. Four years on, at the age of eight, Margarita was promised to Leopold. In the years that followed, portraits of her were sent from Madrid to Vienna so the emperor could watch his bride grow up in paintings long before he met her. She mattered far beyond Vienna.
When her father died in 1665, his will placed her next in line for the Spanish throne should her frail younger brother Charles fail to survive. In April 1666, at fourteen, she was married to Leopold by proxy in Madrid, with a stand-in taking the groom’s place. She then sailed from the Spanish coast to Italy, crossed the Alps, and met Leopold for the first time outside Vienna in late November. In December 1666, a week after entering the city, they were wed in person.
She was fifteen. He was twenty-six. The court presented it as a fairy tale. On her seventeenth birthday, Leopold mounted a lavish opera in her honor, *Il pomo d’oro*, The Golden Apple.
In private, she called him “Onkel,” the German word for uncle, and he called her “Gretl.” By most accounts, the marriage was a happy one. That was the story told on the stage. The nursery in the Hofburg told a different one.
The first son, the one who ended up in the coffin, was born in September 1667 and lived roughly three and a half months. Then came Maria Antonia in 1669, the one meant to survive. In February 1670, a boy named John Leopold was born and died the same day. In February 1672, a girl lived only two weeks.
Count in two miscarriages, and Margarita had gone through six pregnancies in roughly six years. Four infants lost, one survivor—close to the normal rate for her family. In 2009, geneticists at the University of Santiago de Compostela studied the children of Spanish Hapsburg kings and found that between 1527 and 1661, half of them died before reaching the age of ten. Margarita had been one of the very few of her father’s children to reach adulthood.
Now she watched the same pattern unfold in her own nursery, and she had to endure every one of those pregnancies. In March 1673, four months into yet another, Margarita died in the Hofburg. She was twenty-one. They buried her in the Imperial Crypt, and her four-year-old daughter was all that remained of that marriage.
Leopold did what the system demanded, and he did it fast. Seven months later he married again, also a Hapsburg—Claudia Felicitas, of the Tyrol branch of the family. Yet in a letter written that summer, on the day that would have been Margarita’s twenty-second birthday, he wrote that his new bride was not “like my only Margareta.”
Leopold’s later nursery makes the comparison difficult to overlook.
Over the decades that followed, he fathered twelve more children with his later wives, and six of them reached adulthood. Set that against Margarita’s single survivor out of four. Now consider what it meant for the four-year-old girl in the palace. With her mother dead and her uncle still childless in Madrid, the child abruptly became something far more dangerous than an archduchess.
In Spain, the royal court regarded her as the most direct heir to her uncle’s crown—the entire Spanish Empire, overseas colonies included. But her father did not want anyone to see her that way. Leopold considered himself the rightful heir to Spain. Later, he wanted the throne for a son from his third marriage.
So he kept her claim to the throne secret. The historian who studied her portraits, Rocío Martínez López, found that the paintings made of her in Vienna show an ordinary archduchess, with no hint that she stood next in line to the Spanish imperial succession. But in Madrid, her grandmother Mariana wanted the opposite. She wanted Margarita’s descendants to inherit Spain.
So the child in the Hofburg turned into a pawn tugged in two directions by the two branches of her own family. She came of age inside that quarrel. A grave girl, she cherished the music of the Viennese court and, while the grown-ups around her haggled over what she was worth, she became one of its patrons. Among the husbands put forward for her was her own uncle Charles, the King of Spain.
Had it come about, it would have been the third marriage between uncle and niece in three generations of the same line. That marriage never came about. Leopold had a shrewder way to make use of her. On 15 July 1685, at sixteen, she was married to Maximilian II Emanuel, Elector of Bavaria, a military commander of twenty-three.
The bargain carried a steep price. Her father obliged her to give up her claims to the Spanish throne, and in return her new husband was pledged a weighty post, the governorship of the Spanish Netherlands. That pledge would come back to trouble her life at the very worst moment. Within a few years, behind closed doors, the marriage was genuinely in trouble.
Her husband was gregarious and impatient, a soldier above all. She was reserved and grave. The accounts that survive note that he was endlessly unfaithful, and she regarded it as a personal affront. All the while, the court demanded an heir of her, since an heir was the entire purpose of the match.
She conceived and bore a son. He did not survive for long. Then it happened once more, with a second son. By most accounts, both boys died at birth or very shortly afterward.
The precise dates of those two births rest on shaky sources, yet nobody questions that two sons came before the one who lived, and that neither survived. Here is the point that is easily overlooked. It is her mother’s story playing out again. A niece and an aunt, losing child after child in the nursery while still in their early twenties.
Then the moment arrived to make good on her father’s pledge. Her husband was granted his post as governor and traveled to Brussels to run the Spanish Netherlands. She was pregnant for the third time. When her time came, she was not in Munich or in Brussels.
She had gone back to her home in Vienna. What unfolded in Vienna that autumn is the reason this story is told at all. On 28 October 1692, in the Hofburg, in the very building where she had been born, she brought a boy into the world. They called him Joseph Ferdinand.
He was healthy, and he lived. For a few weeks it looked as though she had at last done the one thing everyone around her had wanted. Then, in December, she fell ill. On Christmas Eve, she died in the palace where she had been born.
Her son was eight weeks old. For three hundred years, nobody could attach a figure to what had befallen them. In 2013, two researchers from the same university in Santiago, Francisco Ceballos and Gonzalo Álvarez, brought out a study in the journal Heredity. They reconstructed the Hapsburg family tree from 1450 to 1750, thousands of people over more than twenty generations, and worked out what geneticists call the inbreeding coefficient for the whole bloodline.
Here is the easiest way to picture it. Choose any gene in your body. You hold two copies, one from your mother and one from your father. The coefficient is the odds that those two copies are in fact the same copy, handed down through two branches of a single family and meeting again in you.
For the child of a brother and a sister, those odds are 0.25, one in four. In an earlier study from 2009, the inbreeding coefficient for the Spanish kings had climbed from 0.025 for the first of them to 0.
254 for Charles, the king everyone cites as the worst case. That same study found that inbreeding, even where it never went past cousins, cut a royal child’s chance of reaching the age of ten by roughly 18 percent. Margarita had the same parents as Charles. So in theory, she carried his number too.
Maria Antonia reached 0.305. That is not a misprint. In the 2013 paper, it was the highest figure in the entire bloodline, above her uncle, above her mother, above that one-in-four mark.
Nowhere near her in the family tree had a brother and sister married. The figure arose from two uncle-niece marriages in a row, piled on top of earlier cousin marriages that kept feeding the same ancestors back in. That 0.305 number has its limits.
It is a computed figure from a single paper, drawn from the family tree rather than from her DNA. As far as anyone can tell, no higher coefficient has been measured for any royal with a well-documented family tree. Older dynasties may have gone further, but their records have too many holes for the calculations to be equally trustworthy. That leaves the question a video about Charles could not answer.
If her number was higher than his, why did she grow up, marry, and bear a child who lived, while Charles could do none of those things? A high coefficient raises the odds that two damaged copies of a given gene will meet in a child of the family, and chance picks which child. Charles got a body that failed him in public. Maria Antonia and her mother got bodies that looked sound in the records but failed them in the one place royal women were judged, the nursery and the birthing room.
In 2025, the same team of researchers, this time with Román Vilas aboard, focused specifically on the mothers of the Hapsburg family. The higher a Hapsburg woman’s inbreeding coefficient, the greater her likelihood of dying in the weeks right after childbirth. Maria Antonia died about two months after her son was born, beyond the window that study measured, so it cannot establish the cause of her death. But it sets her death inside a pattern the researchers could actually tally across the family.
That brings us back to the one child who survived. That boy was on the verge of becoming the most important child in Europe. Charles had never fathered children, and the great powers were uneasy about what would follow his death. If Spain passed to the Bourbons of France or the Hapsburgs of Austria, one of those two houses would grow far too strong.
The boy was the solution. He was Margarita’s grandson, yet he was Bavarian, neither French nor Austrian. In 1698, England and France signed a treaty naming him heir to the Spanish throne and handing portions of the empire to France and Austria. Charles would not accept his empire being carved up.
That same month, November, he named the boy in his will and left him everything. The grandson of the little girl from Las Meninas, the boy whose mother had died weeks after his birth, was to become King of Spain. The timing of what came next was savage. On 6 February 1699, the boy died.
He was just six years old. Smallpox is the cause most often cited. Whispers that his grandfather Leopold had arranged his poisoning were never confirmed. With him gone, the final surviving branch of Margarita’s line came to an end.
Four babies, a single daughter, three grandsons, and by 1699, not a soul was left. Charles passed away the next year, in November 1700, and bequeathed everything to Philip, Duke of Anjou, the grandson of France’s King Louis XIV. Austria would not stand for it, and Europe plunged into war over Spain for more than a decade. Some estimates put the death toll in the hundreds of thousands.
For close to two centuries, the Hapsburgs had wed their own kin to keep Spain within the family. It all concluded with the Spanish crown resting on a French head. And the girl at the center of *Las Meninas* was left with no one to continue her line. Such was the price exacted from the most inbred princess ever documented for her family’s scheme.
Yet a queen from a far more ancient dynasty may have tallied an even greater number, and the historical records reveal almost none of the devastation they ought to. That figure has stayed a mystery, lodged in a blank space of history.