A dead man found near the Olympia shopping centre in Munich was the suspected gunman, police have confirmed.
In a press conference in the early hours of Saturday morning, Munich's police chief said the man had been identified as an 18-year-old German-Iranian who used a pistol to open fire at a nearby McDonald's.
The motive for the attack, in which nine others were killed and several were injured, is not yet clear.
The man then took his own life and was found in a side street near the centre. He was not previously known to police, the police chief added. He had both German and Iranian citizenship and had lived in Munich for more than two years.
Three people spotted fleeing the scene of the attack, who police initially believed had been responsible for the shooting, have been identified and were not involved.
Nine people were killed when a gunman opened fire at a shopping centre in Munich - seven of whom were reportedly teenagers.
A gunman who killed nine people and at a Munich shopping centre was German-born and had no links with Islamic State, authorities say.