Barack Obama may no longer be the leader of the free world, but that didn’t stop the masses from waiting for him to show up Wednesday for jury duty in Chicago.

He ultimately was dismissed.

Obama left his home in the Kenwood neighborhood just before 9:30 a.m. for the Daley Center, where his vehicle was parked in a secure garage under the building, a source told the Chicago Tribune.

He took a private elevator to the 17th floor, where a crowd of journalists, court staffers and attorneys converged in hopes of catching a glimpse of the former commander-in-chief.

“He’s gorgeous!” court clerk Sonal Joshi exclaimed before rushing back to her office on a lower floor.

Obama — wearing a sport coat and shirt, but no tie — waved at the throng and then waited along with fellow citizens to see if he would be chosen to serve on a trial and earn the standard compensation of $17.20 a day.

Ronald Stubbs, 50, another prospective juror, waited in the lobby with his phone at the ready to snap a photo of Obama.

“It’s cool,” Stubbs told the Tribune. “I would love to see the former president.”

Obama was a hit in the jury assembly room, where he shook hands with other would-be jurors and signed copies of his books that some brought.

Cook County Chief Judge Timothy Evans later announced that Obama was not tapped to serve on a jury.

Some shared their brush with the 44th president on social media.

“OBAMA! Jury duty & I just shook hands with the best president ever!!” Angel Martinez gushed on Twitter using the handle @1992AngelM.

The former president, who holds a Harvard Law School degree, lives in Washington but maintains a home in Chicago.

Before heading to court, he took time to tweet about Tuesday night’s high-profile state and mayoral election results, which were seen as a sweeping repudiation of the politics of his successor, Donald Trump.

“This is what happens when the people vote,” Obama wrote. “Every office in a democracy counts!”

Obama is not the first American president to show up for a civic duty that some citizens either dread or find excuses to avoid.

In 2015, George W. Bush responded to a jury summons in Dallas. He was not selected, but sat through the process and posed for photos with other potential jurors.