Outgoing U.N. Ambassador Nikki Haley riffed on New York City Mayor Bill de Blasio and other politicians at the annual Al Smith Dinner -- benefiting Catholic charities.

The dinner is named for the first major-party Catholic presidential candidate, former Gov. Alfred E. Smith (D-N.Y.), who ran against President Hoover in 1928.

Haley turned to de Blasio, who was seated near his fellow Democrat Andrew Cuomo, the governor of New York, and reminded him that she has "diplomatic immunity" as a member of the United Nations delegation.

"You're familiar with diplomatic immunity," she told de Blasio. "It's an exemption from prosecution -- but as [you] call it, a "sanctuary city."

De Blasio has been critical of President Trump's crackdown on sanctuary policies, and has in the past called for the abolition of Immigration and Customs Enforcement.

Continuing on that theme, Haley picked up her water glass to show the audience.

Haley Keynote at NYC Dinner: 'You Wanted an Indian Woman But Elizabeth Warren Failed Her DNA Test'

Trump Riffs on His 'Modesty', 'Pardons' Hillary at Alfred Smith Dinner

"Oh look, I got the mayor's drink by mistake -- there's no ICE," Haley said.

Haley also made jokes at the expense of several other political figures.

She joked that New Jersey Sen. Cory Booker (D) was at the gala, but "walked out."

Haley also said Arizona Sen. Jeff Flake (R) would have attended, but he wanted a week to have the "FBI look into it."

Flake previously called for a pause in the Kavanaugh confirmation so that the bureau could investigate misconduct claims against him.

Watch more above.

WATCH: Ryan Riffs on Trump, Schumer, Bannon, Clinton at Al Smith Dinner

'It'd Be Amazing Comedy': Eric Trump Says He Hopes Elizabeth Warren Runs for President