Munich went into lockdown after the rampage began around 6pm on Friday evening.
The attack – at the Olympia shopping mall – left terrified shoppers and staff running for their lives.
Some were stuck inside the building, hiding where they could.
Officials told the public to get off the streets as the city – Germany’s third largest – went into a state of emergency.
Tram, train and bus services were suspended and highways were sealed off.
What happened to the gunman?
Police say the gunman – who is believed to have acted alone – killed himself with his own weapon.
There was no claim of responsibility in the immediate aftermath of the attack.
Munich mourns
Passers-by have begun to leave flowers and candles at the scene of Friday’s shooting.
This is the third attack targeting civilians in Western Europe in eight days.
It comes four days after five people were stabbed and injured on a train in Germany by an Afghan asylum seeker. (Euronews)