Harry and Meghan's new daughter joins the line of royal succession – bumping other senior royals further down.
Traditionally, sons trumped daughters in the line of succession, even if they were younger.
But the law changed in 2013 ahead of the Duke and Duchess of Cambridge's first child so that age, not gender, is now the deciding factor.
This is how Lilibet "Lili" Diana Mountbatten-Windsor's arrival affects the line of succession.
First in line: Prince Charles
The Queen's eldest son will become King when his mother, who is 95 years old, dies.
Now 72 years old, the Prince of Wales has been first in line to the throne since he was three years old, when his mother became Queen after her father died aged 56.
More on Prince Harry
Who is bumped down the line of succession by Harry and Meghan's second child?
Lilibet Diana Mountbatten-Windsor: Choice of name for Sussexes' second child shows family still matters despite very public disagreements
William and Kate 'delighted' after Harry and Meghan announce birth of baby daughter 'Lili'
Harry and Meghan announce birth of baby daughter, saying: 'She is more than we could have ever imagined'
Harry and Meghan: 'Oprah who?' – Prince Edward and Sophie, Countess of Wessex, joke about bombshell interview
Prince Harry and Oprah Winfrey to host second show about mental health on Friday
He is the oldest and longest-serving heir apparent in British history.
For years now, there has been a question over whether the Queen would give up her position so Prince Charles can take over before she dies, although that would mean abdicating the throne.
Second in line: Prince William
Prince Charles and the late Princess Diana's eldest son is next in line after his father.
The Duke of Cambridge, 38, and wife Kate have taken up more responsibilities over the past few years as the Queen gets older, and also since Harry and Meghan quit as senior royals.
In 2015, he said: "All of us who will inherit the legacy of my grandmother's reign and generation need to do all we can to celebrate and learn from her story. Speaking for myself, I am privileged to have The Queen as a model for a life of service to the public."
Third in line: Prince George
The first child of the Duke and Duchess of Cambridge, Prince George was born in the Lindo Wing of St Mary's Hospital in July 2013.
The seven-year-old is third in the line of succession to the British throne – and like his father and grandfather, is expected to become king one day.
A few months before he was born, a bill that ends succession to the Crown based on gender became law.
This meant that even if Kate and William's firstborn had been a girl, they could become monarch in the future.
Fourth in line: Princess Charlotte
Now six years old, Charlotte Elizabeth Diana is fourth in line to the throne.
Relaxed in front of crowds, the young princess has been seen sticking her tongue out at photographers and waving at royal fans.
Her mother, the Duchess of Cambridge, has regularly released pictures of her children to mark their birthdays.
The latest photograph to be released showed Charlotte looking happy and relaxed in a floral summer dress.
Fifth in line: Prince Louis
The Cambridge's youngest child, Prince Louis is three years old.
He has not been seen in public much, mainly due to the pandemic, but his mother has released family photos of him.
The little prince has also appeared in a few videos over the past year, clapping for key workers and asking David Attenborough what his favourite animal is (it's monkeys).
Sixth in line: Prince Harry
No longer a senior royal, the now-father of two, was in the Army for 10 years and served in Afghanistan twice as an Apache helicopter co-pilot and gunner.
He left the Army in 2015 and focused on charitable work, including creating the Invictus Games for injured members of the armed forces, and conservation in Africa.
Before marrying American actor Meghan Markle in 2018, he took part in official royal duties, including standing in for the Queen.
The birth of each of his brother's children has bumped him further down the line of succession.
Less than two years after he got married at Windsor Castle, Prince Harry and his wife stepped back as senior royals and said they wanted to "work to become financially independent".
The couple first moved to Canada and then California as the pandemic hit, which is where they remain.
Buckingham Palace said in early 2021 the pair would not be returning to royal duties and would give up their honorary military appointments and royal patronages.
Since moving to the US, they have made deals with Spotify, Netflix and Apple TV+ to produce podcasts and series.
Their son, Archie, was born in the UK in 2019 while their daughter was born in Santa Barbara.
Seventh in line: Archie Harrison Mountbatten-Windsor
Harry and Meghan's eldest child is seventh-in-line to the throne after his father.
His parents chose not to use a royal title for their firstborn.
The two-year-old has spent more than half his life in Canada and the US after the couple moved to Vancouver in November 2019, then California in March 2020.
The rest of the royal family have not seen Archie since Harry and Meghan returned from their Africa tour in October 2019.
Eighth in line: Lilibet "Lili" Diana Mountbatten-Windsor
The Duke and Duchess of Sussex's second child is the first of the Queen's great-grandchildren to be born outside the UK.
Lili is named after her great-grandmother, the Queen – who was affectionately nicknamed Lilibet by her family – and her grandmother, the late Princess Diana.
She will be entitled to be a princess and Archie a prince – both with HRH styles – when the Queen dies and Prince Charles becomes king.
This is because they will have moved up the line of succession to become the children of a son of a monarch.
Ninth in line: Prince Andrew
Lili's arrival means the Duke of York is now ninth in line to the throne.
The Queen's third child, and second son, was the first child born to a reigning monarch in just over 100 years.
He took a step back from public duties in November 2019 after giving an interview about his connections to convicted sex offender Jeffrey Epstein, over which he was widely condemned.
The 61-year-old became a person of interest in the criminal investigation into Epstein and US authorities filed a mutual legal assistance request to the UK to formally interrogate Andrew, although this has never happened.
Tenth in line: Princess Beatrice
Prince Andrew and Sarah Ferguson's eldest child has been bumped down to tenth-in-line to the throne by Lili's arrival.
The 32-year-old has been a working royal since she left university as well as supporting several charities.
She married property developer Edoardo Mapelli Mozzi in July 2020 in a small service at Windsor after it had to be postponed due to COVID restrictions.
The princess became stepmother to Mr Mozzi's son, Christopher Woolf, from a previous relationship.
They are expecting their first child together in autumn 2021.
Eleventh in line: Princess Eugenie
Beatrice's younger sister comes in after her sister in the line of succession but will be bumped further down after her sister's child is born.
She has also been a working royal since leaving university and married brand ambassador Jack Brooksbank in 2018.
Twelfth in line: August Philip Hawke Brooksbank
Princess Eugenie and Mr Brooksbank's son was born in February 2021.
As great-grandchild to the Queen, August is 12th in line to the throne but does not have a royal title.
Only the children and grandchildren of the monarch through the male line are entitled to be prince or princess, and because his father is not a royal he is not eligible for any other title.
Thirteenth in line: Prince Edward
The Queen's fourth child, and third son, has been pushed right down the line of succession by his older brothers' children and grandchildren.
The Earl of Wessex and Viscount Severn went to the University of Cambridge and was in the Royal Marines before forming his own TV production company.
He married PR executive Sophie Rhys-Jones in 1999 and they have two children.
The couple took up full-time royal duties in 2002 and undertake engagements on behalf of the Queen.
He holds patronages with over 70 charities and organisations, focusing on the arts, athletics and the development of the Duke of Edinburgh's Award.
Fourteenth in line: James, Viscount Severn
The 13-year-old is the Earl and Countess of Wessex's youngest child and the Queen's youngest grandchild.
He is higher in the line of succession than his older sister because they were born before the law changed to allow age not gender to determine the order
James and his sister took part in their first overseas engagement in 2015 when they accompanied their parents on a trip to South Africa.
Fifteenth in line: Lady Louise Mountbatten-Windsor
Viscount Severn's older sister, Lady Louise is a keen horse rider and was often seen carriage driving with her late grandfather, Prince Philip.
The 17-year-old is the Queen's youngest granddaughter and both she and her brother have been kept out of the limelight as they grew up.
Both of Prince Edward and Sophie's children have been seen more recently as they paid tribute to Prince Philip, and were the only children at his funeral.
Sixteenth in line: Princess Anne
The Princess Royal is the Queen's second child but because she is a female (and born before the law changed in 2013), she is below her two younger brothers, their children and grandchildren in the line of succession.
An accomplished horse rider, she was the first British royal to compete in the Olympic Games.
She holds patronages in more than 300 organisations and was nominated for the Nobel Peace Prize in 1990.
Considered by many to be the hardest-working member of the royal family as she does the most public engagements, Princess Anne has undertaken more and more on behalf of the Queen in the past few years.
She married Captain Mark Phillips in her early 20s, but they divorced in 1992, having had two children, Zara and Peter Phillips.
Months after her divorce, she married Sir Timothy Laurence, who was her mother's equerry in the 1980s.
She is known for her commitment to her duties and her no-nonsense approach.