A vacuum tube is a device built to control the flow of charged electrons in a unidirectional flow. In other words, the vacuum tube ensures electricity only travels one way through a device.
The vacuum tube was invented in 1904 and was the primary method for controlling electric flow through electronic devices for fifty years until the first integrated circuits were invented and used.