LONDON -- The United Kingdom and the world bade farewell to Queen Elizabeth II on Monday with a state funeral that drew presidents and kings, princes and prime ministers 鈥 and crowds in the streets of London and at Windsor Castle 鈥 to honour a monarch whose 70-year reign defined an age.

In a country known for pomp and pageantry, the first state funeral since Winston Churchill鈥檚 was filled with spectacle: Before the service, a bell tolled 96 times 鈥 once a minute for each year of Elizabeth's life. Then, 142 Royal Navy sailors used ropes to draw the gun carriage carrying her flag-draped coffin to Westminster Abbey, where pallbearers carried it inside and about 2,000 people ranging from world leaders to health care workers gathered to mourn.

The trappings of state and monarchy abounded: The coffin was draped with the Royal Standard and atop it was the Imperial State Crown, sparkling with almost 3,000 diamonds, and the sovereign鈥檚 orb and scepter.

But the personal was also present: The coffin was followed into the church by generations of Elizabeth鈥檚 descendants, including King Charles III, heir to the throne Prince William and 9-year-old George, who is second in line. On a wreath atop the coffin, a handwritten note read, 鈥淚n loving and devoted memory,鈥 and was signed Charles R 鈥 for Rex, or king.

鈥淗ere, where Queen Elizabeth was married and crowned, we gather from across the nation, from the Commonwealth, and from the nations of the world, to mourn our loss, to remember her long life of selfless service, and in sure confidence to commit her to the mercy of God our maker and redeemer,鈥 the dean of the medieval abbey, David Hoyle, told the mourners.

The service ended with two minutes of silence observed across the United Kingdom, after which the attendees sang the national anthem, now titled 鈥淕od Save the King.鈥

The day began early when the doors of Parliament's 900-year-old Westminster Hall were closed to mourners after hundreds of thousands had filed in front of her coffin.

Monday was declared a public holiday in honour of Elizabeth, who died Sept. 8 鈥 and hundreds of thousands of people descended on central London to witness history. They jammed sidewalks to watch the coffin wend its way through the streets of the capital after the service. As the procession passed Buckingham Palace, the queen's official residence in the city, staff stood outside, some bowing and curtseying.

Mark Elliott, 53, who travelled from the Lake District in northern England with his wife and two children to watch the procession, got up at 1:30 a.m. to stake out a good viewing location near the palace.

鈥淚 know we don鈥檛 know the queen, but she鈥檚 been our head of state for 70 years, you feel as though you know her, you feel as though she鈥檚 part of the family. It is kind of moving,鈥 he said.

Archbishop of Canterbury Justin Welby said in his sermon at Westminster Abbey that 鈥渇ew leaders receive the outpouring of love we have seen鈥 for the queen.

More people lined the route the hearse took from the capital to Windsor Castle, and many tossed flowers at the cortege as it passed. Millions more tuned into the funeral live, and crowds flocked to parks and public spaces across the U.K. to watch it on screens. Even the Google doodle turned a respectful black for the day.

As the coffin arrived at the castle, there were poignant reminders of her love of animals: A groom stood at the roadside with one of her ponies, Emma, and another member of staff held the leashes of two of her beloved corgis, Sandy and Muick.

During the committal ceremony in St. George鈥檚 Chapel on the castle grounds, Dean of Windsor David Conner praised Elizabeth for her 鈥渓ife of unstinting service鈥 to the nation but also her 鈥渒indness, concern and reassuring care for her family and friends and neighbours.鈥

Then the crown and the orb and scepter were removed from atop the coffin and placed on the altar 鈥 separating them from the queen for the last time. Her coffin was lowered into the royal vault through an opening in the chapel's floor. Charles looked weary and emotional as mourners sang the national anthem.

At a private family service, the queen was later laid to rest with her husband, Prince Philip.

The mourners at Westminster Abbey included U.S. President Joe Biden, French President Emmanuel Macron, all of the living former British prime ministers and European royalty.

In Japan, whose Emperor Naruhito also attended, several people sipped beer and watched the service at The Aldgate British pub in Tokyo鈥檚 fashionable Shibuya district.

鈥淭he queen had an especially long history in a country that boasts a long history, and so she deserves deep respect,鈥 said one of them, Tomotaka Hosokawa.

The global outpouring of sympathy touched the king, who on the eve of the funeral, issued a message of thanks to people in the U.K. and around the world, saying he and his wife, Camilla, the queen consort, have been 鈥渕oved beyond measure鈥 by the large numbers of people who have turned out to pay their respects.

Jilly Fitzgerald, who was in Windsor, said there was a sense of community among the mourners as they prepared to wait hours to see the procession carrying the queen鈥檚 coffin.

鈥淚t鈥檚 good to be with all the people who are all feeling the same. It鈥檚 like a big family because everyone feels that 鈥 the queen was part of their family,鈥 she said.

___

Kullab reported from Windsor, England. Associated Press journalists Sylvia Hui and Jill Lawless in London and David Keyton in Windsor contributed.