![Sophia of Hanover Sophia, Electress of Hanover](https://api.time.com/wp-content/uploads/2015/04/sophia.jpeg?quality=85&w=2400)
The new royal princess, Charlotte Elizabeth Diana, younger sister to the heir to the British throne, could ascend to the throne one day—but right now, she is fourth in line, after grandfather Prince Charles, father Prince William and her older brother George.
But had it not been for a now-obscure 1701 law, the baby might not have been royal at all, much less fourth in line for the throne. The ancestor that the royal baby has to thank for its place in the line of succession is Sophia, Electress of Hanover.
Here’s what happened: as explained by the official website of the British monarchy, the late 17th century wasn’t exactly a stable time in England. King James II had created some major disgruntlement by converting to Catholicism—the King of England is the head of the (Protestant) Church of England, so that was a problem—and ended up fleeing the country. His daughter, Mary II, and her husband, William of Orange (William III), were Protestant, and ended up being given the throne by Parliament.
Oh Baby: 121 Years Of Infant Royals On Camera
![Queen Victoria sits with her grandson the baby Prince Edward (later King Edward VIII) on her knee on his christening while Alexandra and Mary stand behind them. (possibly 1894) This was the last time a Queen met her greatgrandchild. In 1894, Queen Victoria holds the newly christened Prince Edward, later Edward VIII.](https://api.time.com/wp-content/uploads/2015/03/queen-victoria-prince-edward-christening.jpg?quality=75&w=2400)
![Volume 1: Page 24. Picture 8. British Royalty. 1896. Duchess of York (originally Mary of Teck) who later became Queen Mary (regined 1910-1936) by marriage to King George V. Pictured with her second son Prince Albert (later King George VI). This tot, pictured in 1896, didn't expect to be king but when his elder brother Edward VIII abdicated, George VI took over.](https://api.time.com/wp-content/uploads/2015/03/king-georgevii-1896.jpg?quality=75&w=2400)
![The Queen Mother As A Little Girl Elizabeth Bowes-Lyon, born to the Scottish aristocracy in 1900, would become royal through marriage to the future George VI. Their eldest daughter is the current Queen.](https://api.time.com/wp-content/uploads/2015/03/elizabeth-bowes-lyon-queen.jpg?quality=75&w=2400)
![British Royalty, 1926, H,R,H,Princess Elizabeth (Queen Elizabeth II) daughter of The Duke and Duchess of York, pictured as a very young baby In 1926, as a tiny baby, Princess Elizabeth already displays the solemn face that she has deployed so often in her public duties since becoming Queen.](https://api.time.com/wp-content/uploads/2015/03/princess-elizabeth-toddler-1926.jpg?quality=75&w=2400)
![Picture of the young Queen Mother as the Duchess of York with her baby daughters Princess Elizabeth (later Queen Elizabeth II), and Princess Maragaret (centre) in 1931. The naughty sister: the baby Princess Margaret, flanked by Princess Elizabeth and their mother, led a colorful life. Prevented from marrying her first love, a divorced commoner, she later married, and divorced, fashionable photographer Antony Armstrong-Jones.](https://api.time.com/wp-content/uploads/2015/03/baby-princess-margaret.jpg?quality=75&w=2400)
![Princess Elizabeth and Son 1949 Before Princes Charles was born in 1948, his grandfather King George VI did away with a long-held custom that demanded the Home Secretary be present at royal births. Here Charles is pictured with his mother, at that stage still Princess Elizabeth.](https://api.time.com/wp-content/uploads/2015/03/prince-charles-mother-princess-elizabeth.jpg?quality=75&w=2400)
![Royal Christening Princess Anne, second child of Princess Elizabeth and Prince Philip, pictured at her 1950 christening, must have been born with horse sense. She won a gold and two silver medals at European equestrian competitions and rode for the U.K. in the 1976 Olympics.](https://api.time.com/wp-content/uploads/2015/03/princess-anne-christening-1950.jpg?quality=75&w=2400)
![Queen Elizabeth II, Princess Anne, Prince Andrew She already had an heir. Here's Queen Elizabeth with the spare: a chubby, 6-month-old Prince Andrew, in the grounds of Balmoral Castle, Scotland in 1960.](https://api.time.com/wp-content/uploads/2015/03/queen-elizabeth-prince-andrew-balmoral-castle-1960.jpg?quality=75&w=2400)
![Prince Edward This 1964 snap of Prince Edward in his cot, with brother Andrew and his mother, the Queen, already suggests an interest in what's going on behind the camera. He went on to found a TV production company in 1993.](https://api.time.com/wp-content/uploads/2015/03/prince-edward-queen-1964.jpg?quality=75&w=2400)
![QAn1 The Queen admires her first grandchild, Peter Phillips, at Balmoral Castle in November 1977. Peter's mother, Princess Anne, declined royal titles for both of her children.](https://api.time.com/wp-content/uploads/2015/03/peter-phillips-queen-balmoral-castle-1977.jpg?quality=75&w=2400)
![Princess Anne & Zara Phillips Christening Zara Tindall, née Phillips has become a top flight equestrian, like mom Princess Anne. Pictured here in 1981, mother and daughter were much photographed at the 2012 Olympics when Anne presented Zara with a silver medal.](https://api.time.com/wp-content/uploads/2015/03/zara-tindall-phillips-princess-anne.jpg?quality=75&w=2400)
![William Session "And one day you will marry a beautiful Princess called Kate." Prince William looks to the future, in 1983.](https://api.time.com/wp-content/uploads/2015/03/baby-prince-william-1983.jpg?quality=75&w=2400)
![Prince William makes a royal salute as he watches the scene of Trooping the Colour from the balcony of Buckingham Palace Prince Harry, aged 9 months, watches a military parade with his mother Diana, Princess of Wales, and brother William, in 1985.](https://api.time.com/wp-content/uploads/2015/03/prince-harry-william-diana-1985-parade.jpg?quality=75&w=2400)
![Beatrice At Her Christening The spitting image of her dad Prince Andrew, but for the red hair inherited from mother Sarah, Duchess of York, Princess Beatrice looks pensive at her 1988 christening.](https://api.time.com/wp-content/uploads/2015/03/princess-beatrice-christening-1988.jpg?quality=75&w=2400)
![Duchess of York Another addition to the house of York: Princess Eugenie, with her mother Sarah, at her christening in 1990.](https://api.time.com/wp-content/uploads/2015/03/princess-eugenie-christening-1990.jpg?quality=75&w=2400)
![The Duke and Duchess of Cambridge With Their Son Prince George Alexander Louis of Cambridge In Bucklebury Prince William, Duke of Cambridge, his wife Catherine, Duchess of Cambridge, with their newborn baby boy, Prince George of Cambridge, Tilly the retriever, left, a Middleton family pet and Lupo, the couple's cocker spaniel, right, at the Middleton family home in Bucklebury, Berkshire, in early August, 2013.](https://api.time.com/wp-content/uploads/2015/03/prince-william-middleton-cambridge-george-berkshire-2013.jpg?quality=75&w=2400)
![Royal brother and sister at Amner Hall Prince George and his sister Princess Charlotte at Anmer Hall in Norfolk, Britain, mid-May 2015.](https://api.time.com/wp-content/uploads/2015/06/prince-george-princess-charlotte.jpg?quality=75&w=2400)
Around that time, as that side of James II’s family took the throne—rather than the Catholic children produced by his second marriage—Parliament passed a bill that was an attempt to settle who would inherit the throne, in order to avoid future revolutions and wars, which had tended to happen whenever that question didn’t have a clear answer.
Except the people to whom the law applied didn’t exactly cooperate by producing heirs. By 1700, Mary was dead and William was sick. Mary’s sister Anne, who was next in line as the oldest Protestant child of James II, had no more surviving children.
So Parliament made another law, the Act of Settlement of 1701, that said that the heirs of James I’s granddaughter, Sophia of Hanover, would be the heirs to the throne. When Queen Anne died in 1714, Sophia’s son became King George I. George I’s great-great-great-granddaughter was Queen Victoria, whose great-great-granddaughter is the current Queen Elizabeth.
But were it not for that 1701 act, the Catholic children of James II might have made a claim to the throne—at least, that’s what the people who wrote the act worried—and the new baby would have been just a random, extremely distant cousin of the actual royals.
But the Act of Settlement isn’t the only law that affects the young princess’ place in line. Until recently, she could have been bumped down if she ever had a younger brother. In 2011, the Act of Settlement was tweaked before Prince George’s birth, to ensure succession would not be affected by gender or by marriage to a Catholic. (Previously, daughters came to the throne only when there were no sons available.)
Even so, the monarch is still prohibited from being Catholic him or herself—something that has drawn criticism from those who wanted the reforms to go even further.
More Must-Reads from TIME
- Biden Drops Out of Presidential Race , Endorses Harris to Replace Him
- Why Biden Dropped Out
- The Chaos and Commotion of the RNC in Photos
- Why We All Have a Stake in Twisters’ Success
- 8 Eating Habits That Actually Improve Your Sleep
- Stop Feeling Bad About Sweating
- Welcome to the Noah Lyles Olympics
- Get Our Paris Olympics Newsletter in Your Inbox
Write to Lily Rothman at lily.rothman@time.com