A Dunn man died Saturday night after being hit by a train while he was trying to get his pickup truck off the railroad tracks, according to the North Carolina State Highway Patrol.