It was his night to get skewered by the press — but he took the biggest “pot’’ shots at himself.

The occasion was Saturday night’s Inner Circle bash at the New York Hilton, where each year the City Hall press corps and the mayor take out their frustrations by roasting each other.

Bill de Blasio as “Bill de BLAZEio”Christopher Sadowski

The mayor, a former hippie, relived his past as a picture of a young “Bill de BLAZEio’’ — photoshopped smoking a spliff — was flashed on a screen.

In another scene de Blasio and his wife, Chirlane, sat on the porch at Gracie Mansion, eating celery, their code for weed. Chirlane observes, “You know what they say, it’s always 420 somewhere,’’ using another ganja reference.

The mayor reminisces, “One time at NYU I had some bad celery. For a couple of hours I thought I was a Republican.’’

Louis C.K. played de Blasio’s subconscious in a skit.AP

His skit opened with Louis C.K., playing de Blasio’s subconscious, asking, “Is there anything more useless than a reporter?’’

Alexander Hamilton soon appears on a video complaining that de Blasio was running two hours late for a duel.

“I think I’m going to call my homies at the New York Post, which I founded,” the founding father muses.

At another point, a woman who presumably lives near Gracie Mansion urges de Blasio to move — and says Post owner Rupert Murdoch should be mayor of the Upper East Side.

Among those attending the event at the New York Hilton were Gov. Cuomo and Manhattan US Attorney Preet Bharara, who is investigating the governor’s very controversial dissolution of the Moreland Commission which was investigating corruption in Albany.

The two did not speak to one another, according to people who were in the same area.

Members of the press started off the proceedings by ribbing de Blasio for his dealings with cops, animals and politicians.

Bill de Blasio and Chirlane with their pretend “pot” on stage.Christopher Sadowski

In one scene, a bodega owner named John Catsimatidis catches a young Bill de Blasio stealing a Snickers Bar and a copy of Karl Marx’s Das Kapital. He calls cops — and when they arrive, Catsimatidis shouts at his young shoplifter:’ “Assume the position!’’

The cops, mistaking that Catsimatidis meant them, turn their backs on de Blasio.

One of them, Bill Bratton, lets his future boss keep the book because “it’s approved under our Commie-Stat program.’’ But he confiscates the candy.

In another scene, police union head Pat Lynch promises de Blasio that NYPD cops will no longer turn their backs to him.“Instead we’ll turn the other cheek.’’

Then they turn around and display the plastic backsides they’ve strapped on.

Another highlight was the mayor confronted by a virtual zoo — including the ghost of the groundhog he dropped, the ferrets he refused to legalize and a carriage horse who wants to keep his job.

As for politicians, de Blasio sings, “they should all love me, to disagree is nuts / except for Cuomo, that miserable young putz.’’