Meghan Markle andPrince Harryjoined members of the royal family for a service at Westminster Hall to honorQueen Elizabeth.

Afterward, the couple left hand-in-hand as they walked behindPrince WilliamandKate Middleton.

Before the service, William and Harry walked together behind their grandmother’s casket in a procession through London, while Meghan made her way in a car withSophie, Countess of Wessex, Prince Edward’s wife.

Prince Harry and Meghan Markle with Kate Middleton and Prince William while leaving Westminster Hall in London.Nariman El-Mofty/AP/Shutterstock

Prince Harry, left, and Meghan, second left, Duchess of Sussex, Prince William, second right, and Kate, Princess of Wales leave Westminster Hall in London

Meanwhile, Kate rode withQueen Camilla, King Charles' wife — with the Queen’s death, they are now the two highest-ranking women in the royal family as Queen Consort and Princess of Wales.

For more on the Royals, listen below to our daily podcast PEOPLE Every Day.

At the funeral procession for their grandfatherPrince Philiplast April,Peter walked between the brothers.

Prince Harry and Meghan Markle at Westminster Hall on Sept. 14.Christopher Furlong/Getty Images

Prince Harry and Meghan, left, Duchess of Sussex, Prince William, second right, and Kate, Princess of Wales leave Westminster Hall in London

The walking procession also included the Queen’s four children —King Charles III, Princess Anne,Prince AndrewandPrince Edward— Anne’s husband Sir Tim Laurence, the Queen’s cousin Prince Richard the Duke of Gloucester and the Queen’s nephew David Armstrong-Jones the Earl of Snowdon.

Prince Harry and Meghan Markle.BEN STANSALL/POOL/AFP via Getty Images

Prince Harry, Duke of Sussex and Meghan, Duchess of Sussex leave after a service for the reception of Queen Elizabeth II’s coffin

On Tuesday evening, Meghan, 41, and Harry joined members of the royal family toreceive the late monarch’s coffinas it arrived at Buckingham Palace.

Days earlier, they alsoreunitedwith William and Kate, 40, at Windsor Castle, where they stepped out together to greet well-wishers wanting to pay their respects to the late monarch.

Prince William and Prince Harry.Chris Jackson/Getty Images

Prince William, Prince of Wales and Prince Harry, Duke of Sussex walk behind the coffin during the procession for the Lying-in State of Queen Elizabeth II

According to Kensington Palace, William invited Harry and Meghan to join him and Kate at the Windsor gates, while another source said security didn’t expect both couples to be there for the walkabout.

William thought the moment “was an important show of unity at an incredibly difficult time for the family,” a royal source previously told PEOPLE.

A palace insider echoed: “It’s such an extraordinary historical moment and also a deeply personal one for the family that you’d hope and think that all members of the family would unite and support [the King] especially. And perhaps some of those wounds can be healed in the process.”

King Charles, Princess Anne, Prince Andrew and Prince Edward.Leon Neal/Getty Images

King Charles III, Princess Anne, Princess Royal, Prince Andrew, Duke of York and Prince Edward, Earl of Wessex walk behind the coffin during the procession for the Lying-in State of Queen Elizabeth II

Releasing aheartfelt statementfollowing his grandmother’s death at the age of 96 on Sept. 8, Harry mourned the monarch and voiced support for the accession of his father.

Prince Harry, Meghan Markle, Prince William and Kate Middleton.Chris Jackson - WPA Pool/Getty

WINDSOR, ENGLAND - SEPTEMBER 10: Prince Harry, Duke of Sussex, Meghan, Duchess of Sussex, Prince William, Prince of Wales and Catherine, Princess of Wales look at floral tributes laid by members of the public on the Long walk at Windsor Castle on September 10, 2022 in Windsor, England. Crowds have gathered and tributes left at the gates of Windsor Castle to Queen Elizabeth II, who died at Balmoral Castle on 8 September, 2022. (Photo by Chris Jackson - WPA Pool/Getty Images)

“Thank you for your commitment to service. Thank you for your sound advice. Thank you for your infectious smile,” Harry said. “We, too, smile knowing that you and grandpa are reunited now, and both together in peace.”

Harry and Meghan will attend the late monarch’s funeral on Monday.

source: people.com