A car drove into a crowd in the western German city of Mannheim on Monday, killing at least two people andseriously injuring several others, overshadowing carnival celebrations in the region where police had been on alert for attacks.
Police detained the car's driver and later said he had acted alone, with no broader threat seen for the public.
The suspect is a 40-year-old German man from the neighbouring state of Rhineland-Palatinate who did not appear to be politically motivated, they said.
It was unclear whether the driver acted deliberately or if there was any connection to Germany's carnival celebrations, which culminated on Rose Monday with a number of parades, although not in Mannheim, which held its main event on Sunday.
Police declined to comment on the suspect's identity, saying this was a focus of their investigation.
Security has been a key concern in Germany following a string of violent attacks in recent weeks, including deadly car rammings in Magdeburg in December and in Munich last month, as well as a stabbing in Mannheim in May 2024.
Police were on high alert for this year's carnival parades after social media accounts linked to the IS militant group called for attacks on the events in Cologne and Nuremberg.
German Interior Minister Nancy Faeser cancelled her attendance at the parade in Cologne on Monday, Germany's biggest, due to the events in Mannheim, a spokesperson for the minister said.
Rose Monday, the culmination of the annual carnival season celebrated in Germany's mainly Catholic western and southern regions, features parades of floats that often include comical or satirical references to current affairs.
This year's carnival has included floats featuring US President Donald Trump, Russian President Vladimir Putin, tech billionaire Elon Musk and Ukrainian leader Volodymyr Zelenskyy.
Dressed in traditional jester costumes and sporting colourful makeup, thousands of partygoers danced through the streets of Cologne, Dusseldorf and other cities in western and southern Germany ahead of the fasting season of Lent.

7 Indonesian airports remain shut due to volcanic ash from Anak Krakatau
At least 5 killed in Amazon Prime Air cargo plane crash in Miami
Israeli strike kills 2 in Gaza, medics say
Bangladesh dengue outbreak accelerates as hospitals come under strain
US peace envoys meet Zelenskyy in Kyiv after Putin talks
US targets three Iranian oil vessels after attack on Navy ships
Israeli strikes kill seven in southern Lebanon
Indonesia's Anak Krakatau eruption halts flights, schools, fishing
