The full costs for Queen's Elizabeth's state funeral and lying in state in September have been revealed by the Treasury.
An estimated £161.7million was spent during the 10-day period of national mourning following the Queen's death on September 8, which culminated in the State Funeral on September 19.
The late monarch died at Balmoral Castle, her beloved Scottish estate, after 70 years on the throne.
Her coffin was transported along roads lined with mourners to Edinburgh before later being taken to London.
The Queen lay in state in Parliament's Westminster Hall from September 14 until the morning of the state funeral in Westminster Abbey. Her body was laid to rest in St George's Chapel in Windsor.
Estimated costs for the period include £73.7million spent by the Home Office on security and policing, while the Department for Culture, Media and Sport, which led for the Government on the lying-in-state, spent £57.4million.
More than 250,000 people queued for hours to file past the Queen's coffin in Westminster Hall as a mark of respect to Britain's longest reigning monarch.
The queue stretched to 10 miles at times - and entry to the line had to be paused several times due to demand.
The Scottish Government spent £18.8million on the elements north of the border, which included the coffin's solemn procession to the Palace of Holyroodhouse in Edinburgh and a service of thanksgiving in St Giles' Cathedral.
The Queen lay at rest in the cathedral for 24 hours before her coffin was transported to Buckingham Palace and then on to Westminster Abbey.
World leaders, dignitaries and politicians flew in from around the globe for the Queen's funeral on September 19.
Other costs included £2.9million for the Ministry of Defence, £2.6million for the Department for Transport and £2.1 million for the Foreign Office.
In a statement, Treasury Minister John Glen said: "The death of Her Late Majesty Queen Elizabeth II on 8 September 2022 and the period of national mourning that followed was a moment of huge national significance.
"During this period, many hundreds of thousands of people came in person to pay their respects, at the Lying at Rest in Edinburgh, the Lying-in-State in Westminster, as well as in London and Windsor for the State Funeral on 19 September.
"Many more people also came out to support His Majesty The King and other members of the Royal Family as they travelled around the UK during this time.
"The Government’s priorities were that these events ran smoothly and with the appropriate level of dignity, while at all times ensuring the safety and security of the public."