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.
The US House Ethics Committee has voted to release its report on former Republican Representative…
ABC News has agreed to pay $15 million to President-elect Donald Trump to settle a…
South Korea’s parliament has voted to impeach President Yoon Suk Yeol over his failed attempt…
Israeli war planes have carried out more than 100 air strikes in Syria on December…
President-elect Donald Trump has threatened to impose 100% tariffs on the BRICS countries if they…
Syrian troops have withdrawn from the city of Aleppo following an offensive by rebels opposed…