Silicene is a new Dirac-type electron system similar to graphene. A monolayer silicene sheet forms a quantum well induced by an electrostatic potential, which acts as an electron waveguide. The guided modes in the silicene waveguide have been investigated. Electron waves can propagate in the silicene-based waveguide in the cases of Klein tunneling and classical motion. The behavior of the wave function depends on the spin and valley indices. The amplitude of the electron wave function in the silicene waveguide can be controlled by the external electric field. These phenomena may be helpful for the potential applications of silicene-based electronic devices.