The piston effect is used in tunnel ventilation. In railway tunnels, the train pushes out the air in front of it toward the closest ventilation shaft in front, and sucks air into the tunnel from the closest ventilation shaft behind it. The piston effect can also assist ventilation in road vehicle tunnels.