Margaret Thatcher was given a final farewell Wednesday with full military honours that saw her coffin applauded through the streets of London, as the queen led mourners in paying their respects to Britain's divisive and influential former prime minister.
Tens of thousands of well-wishers turned out to watch Thatcher's coffin as it travelled to St Paul's Cathedral, many breaking into spontaneous applause and throwing flowers.
Some 700 soldiers, sailors and airmen in full ceremonial uniform lined the route from the Houses of Parliament where Thatcher's body had lain overnight, as guns were fired every minute from the Tower of London.
In a sign of the bitterness her legacy still provokes, a minority among the crowd turned their backs as the funeral cortege went by, booing and chanting "Maggie, Maggie Maggie! Dead, dead, dead!"
Some 4,000 police officers were deployed, amid heightened security following the bombings at the Boston Marathon.
At the cathedral, Queen Elizabeth II led mourners from 170 countries in a rare tribute from the monarch, who has not attended a prime ministerial funeral since Winston Churchill died in 1965.
Prime Minister David Cameron, leader of Thatcher's Conservative party, attended along with former premiers John Major, Tony Blair and Gordon Brown and politicians from across the political divide.
Senior global figures including Thatcher's fellow Cold War warrior Henry Kissinger, the former US secretary of state, and showbusiness stars Joan Collins and Shirley Bassey joined the former prime minister's family in paying their respects.
In his address, Bishop of London Richard Chartres said Thatcher, who transformed Britain and helped end the Cold War during her 11 years in power, was a polarising figure but insisted there was no place for politics at her funeral.
"After the storm of a life led in the heat of political controversy, there is a great calm," he told the 2,300 assembled guests, all clad in black.
"The storm of conflicting opinions centres on the Mrs Thatcher who became a symbolic figure -- even an -ism. Today the remains of the real Margaret Hilda Thatcher are here at her funeral service."
The coffin of the "Iron Lady" had arrived at St Paul's following an hour-long procession from Parliament, which she dominated for half a century in the Houses of Commons and Lords.
Draped in the Union Jack flag and dressed with flowers and a card reading "Beloved Mother -- Always in Our Hearts", the coffin was carried first in a hearse and then on a horse-drawn gun carriage.
Parliament's famous Big Ben bell was silenced for the procession, while a Royal Marines band led the cortege laying funeral marches by Chopin, Beethoven and Mendelssohn.
-- The 'best prime minister since Churchill' --
The pavements along the route were packed by well-wishers, many of whom had risen at dawn to travel to London.
"I wanted to pay my respects to the best prime minister since Churchill," said Gloria Martin, a property developer in her 60s with an array of "I Love Maggie" badges pinned to her chest.
"She was strong, she was resolute, and she put her country first above any idea of popularity."
The crowd included veterans of the Falklands war, viewed by many of her admirers as Thatcher's finest hour and which played a central theme of the ceremony.
Servicemen from units that fought in the 1982 conflict with Argentina carried Thatcher's coffin into St Paul's while two brothers who served in the war walked behind.
Argentina was pointedly not represented among the mourners at the service, who included the prime ministers of Canada, Israel, Italy, Poland and Kuwait.
But the pomp and splendour -- paid for with millions of pounds of public money -- have sparked criticism from those who argue that Thatcher was too polarising a figure to merit such a state-sponsored send-off.
Some in the crowd turned their backs as the funeral cortege went by to protest at the damage wrought by her radical free-market economic reforms, which created mass unemployment in Britain's industrial heartlands.
"We're spending £10 million (11.7 million euros, $15.3 million) on it and that's disgraceful and unacceptable at a time of austerity," said 22-year-old student Casper Winslow, who held a placard reading "Rest of us in poverty".
The government has yet to disclose the costs of the funeral but insists it will be less than the reported £10 million.
Cameron insisted it was right to give Thatcher a proper farewell.
"It is a fitting tribute to a great prime minister respected around the world," he told BBC radio.
"And I think other countries in the world would think Britain got it completely wrong if we didn't mark this in a proper way."
The funeral included Christian hymns reflecting Thatcher's strict Methodist upbringing, and Bible readings by Cameron and Thatcher's granddaughter Amanda, followed by a blessing from the Archbishop of Canterbury, Justin Welby.
Her body was to be cremated in a private ceremony attended by her twin children Mark and Carol, 59, and other family members.
Britain's first female prime minister, who was in office from 1979 to 1990, had suffered from dementia and was rarely seen in public for the final years of her life.
She died from a stroke aged 87 nine days ago.
Her death prompted tributes poured in from around the world for the role she played in bringing down the Iron Curtain, but sparked renewed debate at home over her legacy.