LONDON — Margaret Thatcher was laid to rest Wednesday with prayers and ceremony, plus cheers and occasional jeers, as Britain paused to remember a leader who transformed the country – for the better according to many, but in some eyes for the worse.


Soaring hymns, Biblical verse and fond remembrances echoed under the dome of St. Paul’s Cathedral, as 2,300 relatives, friends, colleagues and dignitaries attended a ceremonial funeral for Britain’s only female prime minister.


Queen Elizabeth II, current and former prime ministers and representatives from 170 countries were among the mourners packing the cathedral, where Bishop of London Richard Chartres spoke of the strong feelings Thatcher still evokes 23 years after leaving office.


“The storm of conflicting opinions centers on the Mrs. Thatcher who became a symbolic figure – even an -ism,” he said. “It must be very difficult for those members of her family and those closely associated with her to recognize the wife, the mother and the grandmother in the mythological figure.”


“There is an important place for debating policies and legacy ... but here and today is neither the time nor the place,” he added.


Security for the funeral – the largest in London for more than a decade -- was tightened after bombings at the Boston Marathon on Monday.


More than 700 soldiers, sailors and air force personnel formed a ceremonial guard along the route taken by Thatcher’s coffin to the cathedral, and around 4,000 police officers were on duty.


But while thousands of supporters and a smaller number of opponents traded shouts and arguments, there was no serious trouble. Police said there were no arrests, and the only items thrown at the cortege were flowers.


Before the service, Thatcher’s coffin was driven from the Houses of Parliament to the church of St. Clement Danes, about half a mile (0.8 kilometers) from the cathedral, for prayers.