A Taiwan court has sentenced a university student to death Friday for killing four passengers on a commuter train last year.

Taiwan's official Central News Agency said Friday the New Taipei City district court sentenced the 21-year-old Cheng Chieh to die for the attack, the first in the metro system's history,

Shortly before rush hour on May 21, Cheng used a 10-centimeter (3-inch) knife in a train car traveling along the metro system's longest stretch between two stations to slash passengers in the chest and stomach, in some cases as they slept.

The apparently random attack also left 22 people injured.