Trains and trams stay on their tracks primarily due to the conical geometry of their wheels. They also have a flange on one side to keep the wheels, and hence the train, running on the rails, when the limits of the geometry-based alignment are reached, either due to some emergency or defect, or simply because the curve radius is so low that self-steering normally provided by the coned wheel tread is no longer effective.