Edward Kennedy's children Edward, Kara and Patrick mourn their father

In a final eulogy to Edward Kennedy, a sober President Barack Obama told mourners at an overflowing funeral service in Boston yesterday that the man known as the Lion of the Senate – or, he noted, "The Grand Fromage" to his multiple nieces and nephews – had been the "greatest legislator of our time".


The two-hour mass was the high mark of a three-day long celebration of the late senator's life. Later, his body was to be flown to Andrew's Air Force Base near Washington, which 46 years ago received the casket of John F Kennedy from Dallas. Thereafter, it will be conveyed, first, for a brief and final service on Capitol Hill before being interred at last alongside both his slain siblings in Arlington National Cemetery.


"We do not weep for him today because of the prestige attached to his name or his office," Obama said with three former US presidents looking. "We weep because we loved this kind and tender hero who persevered through pain and tragedy – not for the sake of ambition or vanity; not for wealth or power; but only for the people and the country he loved."


Few public figures in the United States – save, in fact, for a president – could expect a farewell such as that accorded these last few days to Senator Kennedy. That was clear even from a scan of the faces seated in Our Lady of Perpetual Help Basilica in the working class Roxbury neighbourhood. Jimmy Carter shared a pew with George W Bush. Arnold Schwarzenegger arrived moments before Jack Nicholson. Tony Bennett listened to the tenor voice of Placido Domingo.


For the senator was larger than most. He embodied the triumphs and the tragedies of a political dynasty that has at times attained the status of quasi royalty. He was surrogate father to the children of Jack and Bobby and in politics he had a nearly five-decade-long career that spanned the civil rights struggle, the moon landings, battles over all the causes that meant most to him – the minimum wage, education, opposition to the Iraq War and health care among them – and the election of the first black president.


A hard rain fell in Boston as the hearse pulled up a few minutes late at the Romanesque basilica, also known as the Mission Church, after the short journey from the JFK Presidential Library and Museum where the senator had been laid in repose for two days to allow thousands upon thousands of his constituents, friends and former colleagues personally to pass his casket and pay their respects.


The library was the scene on Friday evening of a more light-hearted celebration, complete with songs and a video tribute, arranged for members of the enormous Kennedy family and some of his closest friends.


"For so many of we just needed someone to hang on," said Joseph Kennedy, one of those to whom Teddy became a surrogate father. "Now Teddy has become a part of history and we have become the ones who have to do all the things that he would have done," added Caroline Kennedy, the daughter of JFK.


Among dignitaries at the funeral from across the Atlantic were Sarah Brown, deputising for the prime minister, as well as Gerry Adams, whose presence was a reminder of the role played by Senator Kennedy in forging peace in Northern Ireland, and his own Irish roots, as well as Taoiseach Brian Cowen. In a quirk of history, it was in the same church that Eamon de Valera, who was to become the first taoiseach of Ireland, met in 1918 with many of the Boston Irish to raise money. "Ted Kennedy was full of crack," Adams said, before noting, "I know that has a different meaning here."


The mass was celebrated by 1,500 guests invited by Vicki Reggie Kennedy, the second wife widow of the senator. Among them was Yo-Yo Ma, who played the cello after the youngest members of the family read short tributes to the congregation and later accompanied Domingo. No fewer than seven priests celebrated the service, helped by 11 pallbearers and 29 honorary pallbearers. Among those in the first pew were Vicki and Edward Kennedy Jr, their faces composed but clearly coursed with emotion.


Felled by brain cancer, Kennedy leaves behind an enormous political void first of all in Massachusetts, which has not had an open US Senate seat for nearly a quarter of a century. Next week will see the start of an effort by Democrats in the state to change the law to allow governor Deval Patrick to appoint an interim replacement pending a special election early next year.


Filling the seat quickly is of prime importance to the Democratic leadership in Washington and to President Obama because the loss of Kennedy has robbed them of the 60-vote majority in the Senate that protects the effort to pass health care reform from Republican filibuster. But it was not the struggles of today that informed the tributes in the basilica, but glories of the past.


"I, like so many others in the city where he worked for nearly half a century, knew him as a colleague, a mentor, and above all, a friend," noted Obama, who came from his holiday on Martha's Vineyard accompanied by Michelle.


"We can still hear his voice bellowing through the Senate chamber, face reddened, fist pounding the podium, a veritable force of nature, in support of health care or workers' rights or civil rights. And yet, while his causes became deeply personal, his disagreements never did."


But he paid tribute especially to the senator's record of bi-partisanship. He recalled one story of the senator egging on a Republican chairman who was reluctant to support a particular bill in committee.


"Teddy walked into a meeting with a plain manila envelope, and showed only the chairman that it was filled with the Texan's favorite cigars," the president said. "When the negotiations were going well, he would inch the envelope closer to the chairman. When they weren't, he would pull it back."