On a train, red lights serve a critical safety function as tail lights or "markers," indicating the rear of the consist to other trains, track workers, and signal systems. Much like on an automobile, the red color is used because it has the longest wavelength in the visible spectrum, making it easily visible from a great distance and through adverse weather conditions like fog, rain, or snow. In the world of rail operations, seeing a red light on a track always means "Stop" or "Danger." Therefore, a red light at the end of a train tells a following driver that the track is occupied and they must not proceed into that block. Historically, this was achieved with oil lamps or red flags, but modern trains use high-intensity LEDs. Additionally, many locomotives are equipped with "ditch lights" that can flash red or an "emergency red light" on the front. If a train experiences an emergency brake application or a derailment that fouls an adjacent track, the engineer can activate this front-facing red light to warn oncoming trains on parallel tracks to stop immediately. This standardized color-coding system is a foundational element of railway signaling worldwide, designed to prevent rear-end collisions and ensure that the "end of train" is clearly identifiable at all times.