The one-dimensional Holstein model of spinless or hard-core fermions interacting with dispersionless phonons is proved to be exactly solvable. Excitation energies and the corresponding wavefunctions of the model are obtained by using a simple extended Bethe ansatz.