Hamburg was one of five cities left in the running, alongside Rome, Paris, Budapest and Los Angeles.
However, 51.7% of residents of the city and nearby Kiel, where sailing events would have taken place, voted no in a referendum on November 29.
German Olympics officials had picked Hamburg as their preferred candidate city ahead of Berlin.
Hamburg’s mayor Olaf Scholz said: “That’s a decision that we didn’t want, but it’s clear.”
Germany has not hosted the Games since 1972 in Munich.
Critics of the plan said it was wasteful, at a cost of €11.2 billion ($11.9 billion), only a small fraction of which had been promised by city authorities.
In 2013, Munich residents also voted against the Olympics, turning down the chance to host the 2022 Winter Games.
In July 2015, the city of Boston decided to withdraw from the race to be host for 2024 amid a lack of public support.
The winning city will be selected in September 2017.
Image source: Wikimedia Commons President-elect Donald Trump celebrated his election victory at the Ultimate Fighting…
Millions of voters across the US chose to return Donald Trump to the White House…
Donald Trump declares victory in the US election as he addresses jubilant supporters in Florida.…
Stocks around the world are rising as Donald Trump appears to be on the cusp…
Donald Trump has won Pennsylvania, North Carolina and Georgia and taken a lead over Kamala…
Quincy Jones, the celebrated musician and producer who worked with Michael Jackson, Frank Sinatra, Ray…