The Adams County Sheriff's Office is investigating the death.
They said in a statement Saturday that Union Pacific reported a person lying near the railroad tracks between Baltimore Avenue and Marion Road, northwest of Hastings, at around 4:00 a.m. that day.
Dominique Lopez, 27, was declared dead at the scene.
Authorities said Lopez was struck by a westbound U.P. train Friday night or Saturday morning.