New York City Mayor Bill de Blasio is heading to Germany to attend a protest related to the G-20 summit of world leaders, his spokesman said Thursday.

“The Mayor will attend several events surrounding the G20 Summit, including Saturday’s Hamburg Zeigt Haltung rally,” Mr. de Blasio’s office said. “A more detailed public schedule will be issued with this trip in progress.”

Mr....