The 22-year-old was hit at the Palmdale Boulevard crossing, near Sierra Highway. He was riding his bicycle across the tracks when the train struck him.
Witnesses say he was trying to beat the train. The train was headed to the Lancaster station.
More than 250 passengers were onboard. No one on the train was hurt.
The incident is under the investigation.