By the end of 1692, Maria Antonia of Austria was dead, and the imperial family in Vienna had already begun the slow machinery of succession that followed every Hapsburg loss. She was twenty-three years old. She had been married for seven years, given birth to three sons, and buried two of them before they could walk. The third, Joseph Ferdinand, was eight weeks old when she died on Christmas Eve in the Hofburg Palace, the same building where she had been born.

The official cause given by most accounts was puerperal fever, an infection no physician in Vienna could treat. On Christmas Day, they placed her in the Imperial Crypt beside her mother. Their coffins still rest there today, beneath the Capuchin Church in Vienna. Two women, mother and daughter, both dead in their early twenties, both after years of pregnancies, both leaving behind a single surviving child.
The story of that dynasty had been engineered for nearly two centuries before Maria Antonia drew her first breath. The Hapsburgs married uncles to nieces and cousins to cousins so that their crowns would never leave the family. And in January 1669, that plan produced a girl in Vienna who would grow up, marry, and have children, all of which her uncle Charles II of Spain could never manage. When geneticists examined her family tree three centuries later, they found a number higher than that produced by sibling incest.
Her name was Maria Antonia. When she was born in the Hofburg that January, a small coffin was already part of the family’s furniture. Her parents’ first child, a young archduke, had died nearly a year before she arrived, 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 both her father and her father’s uncle. Through Margarita’s father, her parents were also first cousins. It went further back than that.
Margarita’s own parents, King Philip IV of Spain and Mariana of Austria, were themselves an uncle and niece. A single couple, Emperor Ferdinand III and his Spanish wife, appeared in the child’s family tree twice, once as grandparents on her father’s side, and again as grandparents to her mother’s parents. The family had done this deliberately. Marriage within the family kept Spain, Austria, and all the claims attached to them in Hapsburg hands.
With each generation, the circle of people allowed to marry each other tightened a little. In this story, the first to pay the price was the child’s mother. In 1656, when Margarita was five years old, Diego Velázquez painted her standing in a room in the royal palace in Madrid. That painting is *Las Meninas*.
If you look past the small blond girl toward the mirror on the back wall, you can see her parents, the king and his niece. Four years later, at the age of eight, Margarita was betrothed to Leopold. Over the following years, her portraits were shipped from Madrid to Vienna so the emperor could watch his bride grow up in paintings before he ever met her. She mattered far beyond Vienna.
When her father died in 1665, his will named her next in line for the Spanish throne if her fragile younger brother Charles did not survive. In April 1666, at fourteen, she married Leopold by proxy in Madrid, with someone else standing in for the groom. 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 married in person.
She was fifteen. He was twenty-six. The court made it look like a fairy tale. On her seventeenth birthday, Leopold staged 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 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 about three and a half months. Then came Maria Antonia in 1669, who was 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.
Add two miscarriages, and Margarita had undergone six pregnancies in about six years. Four infants lost, one survivor, which was close to the normal rate for her family. In 2009, geneticists at the University of Santiago de Compostela examined the children of Spanish Hapsburg kings and found that between 1527 and 1661, half of them died before the age of ten. Margarita had been one of the very few children of her father to reach adulthood.
Now she watched the same thing happen in her own nursery, and she had to endure every one of those pregnancies. In March 1673, four months into another pregnancy, Margarita died in the Hofburg. She was twenty-one. They buried her in the Imperial Crypt, and her four-year-old daughter became all that remained of that marriage.
Leopold did what the system required, and he did it quickly. Seven months later, he married again, also a Hapsburg, Claudia Felicitas of the Tyrol branch of the family. But 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 hard to ignore.
Over the following decades, he fathered twelve more children with his later wives, and six of them reached adulthood. Compare that with Margarita’s single survivor out of four. Now consider what that meant for the four-year-old girl in the palace. After her mother’s death and with her uncle still childless in Madrid, the child suddenly became something far more dangerous than an archduchess.
In Spain, the royal court treated her as the most direct heir to her uncle’s crown, the entire Spanish Empire, including its overseas colonies. 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 became a piece pulled between two branches of her family in opposite directions. She grew up in the middle of that conflict. She was a serious girl who loved the music of the Viennese court and became one of its patrons while the adults around her argued over her value. One of the husbands considered for her was her uncle Charles himself, the King of Spain.
Had that happened, it would have been the third uncle-niece marriage in three generations of the same bloodline. That marriage never took place. Leopold had a better plan for using her. On 15 July 1685, at sixteen, she married Maximilian II Emanuel, the Elector of Bavaria, a twenty-three-year-old military commander.
The deal came at a high price. Her father made her renounce her rights to the Spanish throne, and in exchange, her new husband was promised a major office, the governorship of the Spanish Netherlands. That promise would come back to haunt her life at the worst possible time. Within a few years, behind closed doors, the marriage was in real trouble.
Her husband was outgoing and restless, a soldier first. She was quiet and serious. Surviving accounts record that he was constantly unfaithful to her, and she took it as a personal insult. At the same time, the court expected an heir from her, because an heir was the whole point of the marriage.
She became pregnant and gave birth to a son. He did not live long. Then it happened again with a second son. Most accounts record that both boys died at birth or very soon after.
The exact dates of those two births rest on weak sources, but no one disputes that two sons came before the one who lived, and neither survived. Here is the detail that is easy to miss. It is her mother’s story repeating itself. A niece and aunt losing child after child in the nursery while still in her early twenties.
Then came time to deliver on her father’s promise. Her husband received his office as governor and went to Brussels to administer the Spanish Netherlands. She was pregnant for the third time. When the time came to give birth, she was not in Munich or Brussels.
She had returned to her home in Vienna. What happened in Vienna that autumn is the reason this story exists. On 28 October 1692, in the Hofburg, in that same building where she had been born, she gave birth to a boy. They named him Joseph Ferdinand.
He was healthy and he survived. For a few weeks, it seemed she had finally accomplished the one thing everyone around her wanted. Then in December, she fell ill. On Christmas Eve, she died in the palace where she was born.
Her son was eight weeks old. For three hundred years, no one could put a number to what had happened to them. In 2013, two researchers from the same university in Santiago, Francisco Ceballos and Gonzalo Álvarez, published a study in the journal *Heredity*. They rebuilt the Hapsburg family tree from 1450 to 1750, thousands of people across more than twenty generations, and calculated what geneticists call the inbreeding coefficient for the entire bloodline.
Here is the simplest way to think about it. Pick any gene in your body. You have two copies, one from your mother and one from your father. The coefficient is the probability that those two copies are actually the same copy, passed down through two branches of one family and meeting again in you.
For a child of a brother and sister, that probability is 0. 25, one in four. In an earlier 2009 study, the inbreeding coefficient for the Spanish kings had risen from 0. 025 for the first of them to 0.
254 for Charles, the king everyone points to as the worst case. That same study found that inbreeding, even when it never went beyond cousins, reduced a royal child’s chance of reaching the age of ten by about 18 percent. Margarita had the same parents as Charles. So theoretically, she carried his number as well.
Maria Antonia reached 0. 305. That is not a typo. In the 2013 paper, it was the highest number in the entire bloodline, higher than her uncle, higher than her mother, higher than that one-in-four figure.
No brother and sister anywhere near her in the family tree had married. The number happened because of two consecutive uncle-niece marriages, stacked on top of earlier cousin marriages that kept reinserting the same ancestors. That 0. 305 figure has limits.
It is a calculated number from a single paper, based on the family tree, not on her DNA. As far as can be determined, no higher coefficient has been measured for any royal with a well-documented family tree. Perhaps ancient dynasties went further, but their records have too many gaps to make the calculations equally reliable. That leaves the question that a video about Charles could not answer.
If her number was higher than his, why did she grow up, marry, and give birth to a child who lived, while Charles could do none of those things? A high coefficient makes it more likely that two damaged copies of a particular gene will meet in a child of the family, and chance decides which child. Charles got a body that failed him in public. Maria Antonia and her mother got bodies that seemed sound in the records but failed them in the only place royal women were judged, the nursery and the birthing room.
In 2025, the same group of researchers, now joined by Román Vilas, looked specifically at the mothers of the Hapsburg family. The higher a Hapsburg woman’s inbreeding coefficient, the more likely she was to die in the weeks immediately after giving birth. Maria Antonia died about two months after her son was born, later than the range that study measured, so it cannot prove the cause of her death. But it places her death within a pattern the researchers could actually count across the family.
That brings us back to the only child who survived. That boy was about to become the most important child in Europe. Charles had never produced children, and the great powers were anxious about what would happen when he died. If Spain went to the Bourbons of France or the Hapsburgs of Austria, one of the two families would become far too powerful.
The boy was the way out. He was Margarita’s grandson, but he was Bavarian, neither French nor Austrian. In 1698, England and France signed a treaty naming him heir to the Spanish throne and granting parts of the empire to France and Austria. Charles refused to see his empire divided.
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 happened next was brutal. On 6 February 1699, the boy died.
He was six years old. The usual cause given is smallpox. Rumors that his grandfather Leopold had him poisoned were never proven. With his death, the last living line of Margarita was gone.
Four infants, one daughter, three grandsons, and by 1699, no one remained at all. Charles died the following year, in November 1700, and left everything to Philip, Duke of Anjou, grandson of the French king Louis XIV. Austria refused to accept it, and Europe went to war over Spain for more than a decade. By some estimates, hundreds of thousands of people died.
For nearly two hundred years, the Hapsburgs had married their relatives to keep Spain inside the family. It ended with the Spanish crown placed on a French head. And the girl in the middle of *Las Meninas* was left without anyone to carry her line. That was the price paid by the most inbred princess ever recorded for her family’s plan.
But a queen from a far older dynasty may have recorded an even higher number, and the historical records show almost none of the destruction they should have. That number has remained a mystery in an empty space of history.