Police say a lone gunmen on Friday evening attacked a busy shopping mall, spraying bullets as people fled in horror for safety from what police said was a terrorist attack.
Police said ten people had been killed and that the attacker had taken his own life. They told the public to get off the streets as the city - Germany's third biggest - went into lock down, with transport halted and highways sealed off.
Friday's attack took place a week after a 17-year-old asylum-seeker wounded passengers on a German train in an axe rampage. Bavarian police shot dead the teenager after he wounded four people from Hong Kong on the train and injured a local resident while fleeing.
The incidents in Germany follow an attack in Nice, France, on Bastille Day in which a Tunisian drove a truck into crowds, killing 84. Islamic State also claimed responsibility for that attack.
Friday is also the five-year anniversary of the massacre by Anders Behring Breivik in Norway. Breivik is a hero for far-right extremists in Europe and America.