Most steam locomotives emit both smoke and steam. The exhaust (used) steam from the cylinders is sent to the blastpipe in the smokebox. This creates a jet of steam going up the chimney that entrains the combustion gases that were generated in the firebox and passed through the tubes in the boiler to the smokebox.