If William and Kate's baby is boy or girl, marries a Catholic, Buddhist or Muslim, he or she can still take the throne of Britain and the Commonwealth, as ministers hastened through a new law which will end discrimination against women in the line of succession.
The Government has received final consent from all the Commonwealth realms to press ahead with the legislation, deputy prime minister Nick Clegg said on Tuesday.
Clegg said ministers would now introduce the succession to the Crown Bill in the House of Commons at the "earliest opportunity" available in the parliamentary timetable.
Back of the queue: New succession laws have pushed Prince Harry to the back, as Royal girls can now rule first
The legislation will end the principle of male primogeniture, so that the first child of the Duke and Duchess of Cambridge will succeed to the throne, regardless of whether the baby is a girl or a boy.
The legislation will also end the bar on anyone in the line of succession marrying a Roman Catholic.
"This is a historic moment for our country and our monarchy. People across the realms of the Commonwealth will be celebrating the news that the Duke and Duchess of Cambridge are expecting their first child," Clegg said.
"We can also all celebrate that whether the baby is a boy or a girl, they will have an equal claim to the throne.
"It's a wonderful coincidence that the final confirmation from the other realms arrived on the very day that the Duke and Duchess of Cambridge made their announcement."
William and Kate's newborn will leapfrog Prince Harry to become third in line to the throne. Any more children they have will push Harry further down the line of succession.
CURRENT LINE OF SUCCESSION (HOW MANY HAVE YOU HEARD OF?)
1. Prince Charles, The Prince of Wales (b. 1948)
2. Prince William of Wales (b. 1982)
<---->Baby leapfrogs in here <---->
3. Prince Henry of Wales (b. 1984)
4. Prince Andrew, The Duke of York (b. 1960)
5. Princess Beatrice of York (b. 1988)
6. Princess Eugenie of York (b. 1990)
7. Prince Edward (b. 1964)
8. James, Viscount Severn (b. 2007)
9. Lady Louise Windsor (b. 2003)
10. Princess Anne, Princess Royal (b. 1950)
11. Peter Phillips (b. 1977)
12. Savannah Phillips (b. 29 Dec 2010)
13. Isla Phillips (b. 29 Mar 2012)
14. Zara Phillips (b. 1981)
15. David Armstrong-Jones, Viscount Linley (b. 1961)
16. Hon. Charles Armstrong Jones (b. 1999)
17. Margarita Armstrong-Jones (b. 2002)
18. Lady Sarah Chatto (b. 1964)
19. Samuel Chatto (b. 1996)
20 . Arthur David Nathaniel Chatto (b. 1999)
The new rules will apply to any child born in the line of succession after the Commonwealth Heads of Government meeting in Perth, Australia, in October 2011 when the 16 countries which have the British monarch as their head of state agreed in principle to the change.
Since then, the New Zealand government has been co-ordinating the formal consents from each realm, with assurances that they will be able to complete the necessary measures before the British legislation comes into force.
It will involve amendments to some of Britain's key constitutional documents, such as the Bill of Rights and Coronation Oath Act of 1688, the 1701 Act of Settlement and the 1706 Act of Union with Scotland.