Shelby once had a single Chicago, Rock Island & Pacific Railroad (Rock Island) mainline. The line was abandoned in the early 1950s after a new cutoff was opened further south. Portions of the line near the city have since been reused as a recreational trail.