After seven TV seasons (and two terms in his fictional White House), the heroic, quirky, often embattled chief executive played by Martin Sheen was succeeded by Matt Santos (Jimmy Smits). As the Bartlet administration came to its inevitable conclusion, so did the NBC drama on Sunday night.
"You did a lot of good, Jed, a lot of good," the First Lady (Stockard Channing) told her husband as Inauguration Day dawned.
Bartlet's mood at that moment must have matched many viewers': relief, satisfaction, gratitude and sadness that it was about to be over.
And later on, Abbie Bartlet said proudly, "Jed, you made it. You're still here" - after the assassination attempt, his battle with multiple sclerosis, and the punishing duties of his job.
Sentiment hung heavy through the hour, both for the characters and the audience. In particular, former chief of staff Leo McGarry, who had died suddenly on the campaign trail as Santos' vice-presidential running mate, was repeatedly recalled (as was, implicitly, the late John Spencer, who played him until his death of a heart attack last December).
"I'm gonna take one final stroll around the joint, to make sure nobody's making off with the cutlery," Bartlet told his secretary (Lily Tomlin) after tending to one final presidential task: signing some pardons in the Oval Office.
Caution: Spoiler alert. Would he pardon Toby Ziegler (Richard Schiff), a trusted senior adviser who had leaked classified information out of conscience, then confessed; been fired, tried and indicted; and now was facing prison?
Though still torn between feelings of betrayal and affection - well, of course, Bartlet pardoned Toby.
For the episode, a full-scale inauguration platform was erected, where the ceremony would soon begin as, back at the White House, Bartlet staffers watched coverage of it on their TVs and finished packing up.
Then, at 42 minutes into the hour, Santos took the oath of office. An era was over. So, remarkably, was the brief inauguration scene.
"Nice speech," the former president told President Santos (viewers will never know).
"No JFK," Santos replied.
"No," smiled Bartlet. "But you've got time. Make me proud, Mr. President."
"I'll do my best, Mr. President," Santos said.
And Bartlet was gone.