EDINBURGH, Scotland — The coffin of Queen Elizabeth II is on its way to London.

A bagpiper played as the coffin, draped with the royal standard, was carried out of St. Giles’ Cathedral in Edinburgh.

The queen’s daughter, Princess Anne, was in the hearse and was also to board a Royal Air Force plane taking the coffin from the Scottish capital’s airport.

Applause broke out among the crowds lining the Royal Mile as the hearse passed through the historic heart of Edinburgh.

Thousands of people filed silently past the coffin as it spent 24 hours in the cathedral after being brought to Edinburgh from the queen’s beloved Balmoral Estate. She died there Thursday at age 96, ending her 70-year reign.

King Charles III is returning from Belfast to London to receive his mother’s coffin, which will stay overnight at Buckingham Palace.

The coffin will be taken Wednesday to the Houses of Parliament, where it will lie in state for four days before Monday’s funeral.