A mentally ill man from Germany seriously wounded two passengers in a knife attack on a regional train in western Austria on Tuesday, police said, ruling out a terrorist act.

The 60-year-old was travelling to the city of Bregenz, in Vorarlberg state, early on Tuesday when he suddenly jumped up and stabbed a 19-year-old man in the stomach and back.

The attacker then turned on a 17-year-old youth and slashed his neck, police said.

Source: b'Representational image |Source:AFP\xc2\xa0'

The incident ended when the train pulled into a station and two officers apprehended the man after a brief struggle.

Both victims were taken to hospital, police said.

"The man did not have a migration background. He is by all accounts mentally ill and we are largely excluding a terrorist act," police spokesman Horst Spitzhofer said.

(Feature image source: AFP)