A railway zig zag or switchback is a railway operation in which a train is required to switch its direction of travel in order to continue its journey. While this may be required purely from an operations standpoint, it is also ideal for climbing steep gradients with minimal need for tunnels and heavy earthworks.