Mayor Bill de Blasio is headed to Germany.

The mayor's press secretary confirmed that de Blasio will leave for Berlin and Hamburg Thursday night to attend events "surrounding the G20."

Among the events de Blasio plans to attend include Saturday's Hamburg Zeigh Haltung rally, according to the Mayor's Office.

De Blasio is scheduled to take part in a rally in Hamburg on Saturday and will return to the city Sunday. 

City Hall officials said the rally's organizers will pay for the mayor's trip.

Leaders of numerous countries, including President Donald Trump, German Chancellor Angela Merkel and Russian President Vladimir Putin, are attending events at the summit.

It is the second time in less than two weeks that the mayor has left the city with little advance notice to the media.

In 2014 and 2015, de Blasio traveled to Italy. Reporters were informed of his plans well ahead of time.

The mayor's press secretary said de Blasio only just decided to make the trip to Germany.

The mayor is up for reelection this year, and the presumptive Republican nominee for mayor, Staten Island Assemblywoman Nicole Malliotakis, attacked him for leaving town.

"The news that Bill de Blasio is jetting off to Germany for the G-20 is a slap in the face of New Yorkers who deserve a mayor who works for them," Malliotakis said in a statement. "A member of the NYPD was murdered, a homeless crisis continues to worsen and our subway system seems to be on the verge of collapse and Mayor de Blasio has been criss-crossing the country pushing his national agenda, and now this."

Earlier in the day, Malliotakis took reporters on a tour of a garbage-strewn street in Borough Park, Brooklyn.

"It's absolutely awful," she said on the street. "It looks like a third-world country."

She said that since adding composting to the trash-mix, larger garbage items have been left to linger.

"They're not even providing the basic services of cleaning up the garbage. I mean, that's unconscionable," Malliotakis said. "Of course this community is going to be outraged.

The assemblywoman has a tough road ahead, but she is trying to connect the dots between local issues like trash pick-up and a mayor she says is refusing to do his job.