- Photos: Edward Kennedy's Funeral
- Related: Comments on the death of Sen. Ted Kennedy
- Photos: Ted Kennedy through the years
- More: Most Popular stories, videos and more
- More: Get breaking news alerts
"Ted Kennedy's life's work was not to champion the causes of those with wealth or power or special connections," Obama said. "It was to give a voice to those who were not heard, to add a rung to the ladder of opportunity, to make real the dream of our founding."
The president said that "though it is Teddy's historic body of achievements that we will remember, it is his giving heart that we will miss."
The service drew to Our Lady of Perpetual Help Basilica three of the four living former presidents, dozens of Kennedy relatives, pews full of current and former members of Congress and many others - a crowd of about 1,500 affected by the senator in ways large and small. No fewer than seven priests, 11 pallbearers and 29 honorary pallbearers took part. Mournful performances came from tenor Placido Domingo and cellist Yo-Yo Ma.
After the funeral in a working-class area of Boston, Kennedy's body was being flown to Andrews Air Force Base, which also received the body of his brother, John F. Kennedy, after his 1963 assassination in Dallas. There was to be a prayer service at the base, and another at the U.S. Capitol for Senate staffers. The entourage then was to proceed along the National Mall and into Arlington National Cemetery.
As evening was falling, Kennedy was to be buried there on a hillside near the graves of his slain brothers, RKF as well as Robert F. Kennedy, felled in 1968.
Earlier, the late senator's flag-draped casket - carried by a military honor guard - was wrapped tightly in plastic to guard against a steady rain as it was removed from his brother's presidential library and placed in a hearse for the drive to the church. His widow, Victoria, closed her eyes slowly and appeared to choke back tears as she watched under cover of an umbrella. The family had held a brief and private prayer service at the library in the morning.
The motorcade route was lined with people, some holding "Kennedy-Thanks" signs and one person waving a lone red heart.
"We welcome the body of our friend," said a priest as the casket entered the church.
Under the soaring dome and saint-covered arches of the basilica, a church Kennedy had frequented almost daily while his daughter, Kara, fought lung cancer at a nearby hospital, over a dozen Kennedy family members accompanied the casket - now covered by a white cloth - down the church aisle. Each strained to touch it.
Kara Kennedy was the first family member to speak at the service, reading Psalm 72. Ten of Kennedy's grandchildren, nieces and nephews offered a set of brief prayers.
Ted Kennedy Jr., the eldest son, told a story from shortly after he lost a leg to bone cancer at age 12, when his father helped him up a snow-covered hill to go sledding with an arm around his waist and words of encouragement. "There is nothing you can't do. We're going to climb that hill together, even if it takes us all day," he said his father told him. Choking back tears, Kennedy Jr. said: "My father taught me that even our most profound losses are survivable."
He and Rep. Patrick Kennedy, D-R.I., Kennedy's other son who also spoke, then cried during a long, hard embrace.
The unseasonable cold outdoors, the result of Tropical Storm Danny's path up the Eastern seaboard, was not felt inside the church, which grew warm from the packed crowd. The church's stained-glass windows were opened, and rain could be heard beating down on the cantilevered ceiling and metal gutters.
The invitation-only service included Boston Celtics great Bill Russell, actor Jack Nicholson and Supreme Court Justice Stephen Breyer, once an aide to Kennedy. Reflecting the prominence of the attendees, all levels of local, state and federal security personnel lined the church's walls.
Obama met with Mrs. Kennedy privately for about 10 minutes early in the morning, at a Boston hotel long frequented by the family.
Kennedy's career spanned the assassinations of his brothers; the civil rights era and Apollo moon landings; and battles over health, education and immigration. Obama noted that Kennedy's name "graces nearly one thousand laws" and that he penned more than three hundred himself.
But the president focused as much on Kennedy's impact on the nation since first being elected in 1962 as on his outreach to those in need, whether relative or stranger, and his resilience through terrible trials of both his own and others' making - "more pain and tragedy than most of us will ever know."
The president noted Kennedy lost two siblings by the age of sixteen and saw two more assassinated later. Another sibling, his sister, Eunice, died exactly two weeks before Kennedy himself.
"He narrowly survived a plane crash, watched two children struggle with cancer, buried three nephews, and experienced personal failings and setbacks in the most public way possible," Obama said. "It's a string of events that would have broken a lesser man ... But that was not Ted Kennedy."
"Ted Kennedy was the baby of the family who became its patriarch, the restless dreamer who became its rock," the president said, embracing Vicki Kennedy and lightly patting the senator's casket as he returned to his seat.
The final page of the program for the service featured a photo of a smiling Kennedy on the shores of Cape Cod, with a setting sun and a sailboat in the background. True to Kennedy's Democratic roots - the page had a union print shop bug. Despite still-pouring rain, a lone man played a bugle on the motorcade route away from the church. The somber service concluded four days of public and private mourning. Kennedy's family has marked his passing at an elaborately organized series of services and events: a Mass at Kennedy's beloved home on Cape Cod on Thursday and a slow motorcade carrying his body from the Hyannis Port compound past Boston sites sentimental to the family. He lay in repose at his brother's presidential library for two days as thousands streamed by.
A rotation of friends, former staffers and others Kennedy touched took turns there for a 24-hour vigil, including the parents of a murdered lifeguard, the family of an Iraq war soldier and the widow of a Sept. 11 terror victim. Friday night, Kennedy was remembered at a bipartisan memorial service.