A rail yard is a complex series of railroad tracks for storing, sorting, or loading/unloading, railroad cars and/or locomotives. Railroad yards have many tracks in parallel for keeping rolling stock stored off the mainline so that they do not obstruct the flow of traffic.