Although most of Germany, and the city of Hamburg in particular, are considered to be fairly safe for tourists, all people traveling abroad in any country need to take some precautions in order to avoid becoming a victim of the tourist-aimed crime that seems to affect more and more travelers all the time in European cities. 

In order to do this in a place such as Hamburg, where many tourists visit, try to avoid carrying more cash than you need, especially if you are out shopping or visiting attractions where there is little or no security. 

Do not wear expensive jewelry, and if staying in a hotel be sure to make use of your hotel's safe for your valuable items.  Men should not carry wallets in their back pockets and women need to pay close attention to their bags while shopping and dining.  Backpackers should keep their packs locked, especially while they are wearing them. 

Also, be especially alert in train stations, museums and other places where large numbers of travelers congregate.