A suspect identified only as German national Marco G, 26, was accused of planting a self-made pipe bomb in a sports bag at the main train station of the western city of Bonn.
The bomb never exploded but sparked a major terrorism alert two weeks before Christmas 2012.
"His plan was that a timer would trigger the explosion .. and kill as many people as possible," the national prosecution service said in a statement.