It's only partially true that Hamburg doesn't have a castle. Through the incorporation of Bergedorf on April 1, 1938, it belongs to the city of Hamburg.
Bergedorf Castle was purely an administrative building for the landowners, officials, and later the Hamburg senators responsible for Bergedorf.
The building was constructed in the 13th century as a moated castle on the Bille river.
Today, the Bergedorf Museum is located there, with the permanent exhibition "stadtlandfluss" on the history of Bergedorf.