Etymology
Today it means: Part of a railway with an arrangement of switches (or points) allowing trains to be diverted and reassembled. Full definition →
From switch + yard.
Etymology from Wiktionary, CC BY-SA 4.0.