An axe-wielding madman leapt off a train at Düsseldorf, Germany’s main station Thursday night and started attacking people — leaving at least seven injured and the station floor swamped with blood, European media reported.

Panicked commuters fled screaming in horror as the attacker, who was initially believed to be with an accomplice, slashed anyone he came across, according to police.

“There was blood everywhere,” one eyewitness told the German newspaper Bild.

“We were standing on the track, waiting for the train. The train came and suddenly someone jumped out with an axe and hit the people. I have experienced a lot, but I have never experienced it,” the witness said.

Authorities later confirmed that the 36-year-old suspect — who lives in Düsseldorf and hails from the former Yugoslavia — had acted alone and been suffering from mental problems, CNN reports.

At least three of his victims were seriously injured in the attack, and two were said to be women.

Cops were able to grab the man responsible and take him into custody after he injured himself while trying to escape, police said.

A video captured inside the station after the drama unfolded showed pools of blood all over the concourse floor, The Mirror reported.

A swarm of cops can be seen standing around colleagues who are either helping a victim or subduing an assailant on the ground, the details were not clear on the footage.

Bild reported that the police arrived with heavily armed special forces as the station was evacuated. A helicopter was also spotted circling over the building in the inner city, the paper reported on its website.

Witnesses originally told local media that an unknown number of wounded were rushed from the train station to hospital.

Emergency vehicles raced through Konrad Adenauer square outside the station entrance.

Duesseldorf’s Hauptbahnhof is the city’s main train station, serving 250,000 passengers a day.

Thursday night’s attack comes less than a year after a trio of Syrian men, allegedly radicalized by ISIS, were arrested for plotting a terrorist attack in the west German city.