The man, whose name was given as Yamen A., was arrested in the early hours in the northeastern town of Schwerin. Police searched his home and also those of other people not suspected of being directly involved.
UAE man 'shouting Allahu Akbar' kills one in Germany supermarket knife attack
"According to the findings so far, Yamen A. made the decision no later than July 2017 to detonate an explosive device in Germany in order to kill and injure as many people as possible," the prosecutor's office said in a statement. "As a result, he began to procure components and chemicals needed to make an explosive device. Whether the suspect had already envisaged a specific target for his bomb attack is still unclear," the office added.
There were no indications that he was a member of a terrorist organisation, it said. It did not say when he arrived in Germany. Chancellor Angela Merkel, who is trying to form a new coalition government after elections last month, has come under fire for allowing more than one million people to enter Germany over the past two years - many of them refugees from Syria.
Nine dead as truck ploughs into German crowd
Her 'open door' refugee policy saw her conservatives bleed support in the election to the anti-immigration Alternative for Germany (AfD), which won seats in the national parliament for the first time. The prosecutor's office said it would provide updates on the case
COMMENTS
Comments are moderated and generally will be posted if they are on-topic and not abusive.
For more information, please see our Comments FAQ