A man was fatally struck by a train Tuesday night in southwest suburban Lockport.

Officers were called to the West 2nd Street crossing at the Canadian National Railroad tracks at 7:52 p.m., according to a statement from Lockport police.

When they arrived, the 20-year-old man who called 911 told them he and his friend, 20-year-old Jacob A. Hegeduis, had gone around the lowered crossing gates and tried to cross the tracks in front of an oncoming train, according to police and the Will County coroner’s office.

The man was able to cross successfully, but Hegeduis was struck by Amtrak train No. 307, which was heading south through the area.

Hedeguis, who lived in Lockport, was dead at the scene, according to the coroner’s office. An autopsy Wednesday found he died of multiple injuries due to a train striking a pedestrian, but his final cause and manner of death will be determined at a later date.

Lockport police, Amtrak police and Canadian National Railroad police are investigating.