This paper addresses the study of the controllability for a one-dimensional wave equation in domains with moving boundary. This equation characterizes the motion of a string with a fixed endpoint and the other one moving. When the speed of the moving endpoint is less than , by the Hilbert Uniqueness Method, the exact controllability of this equation is established. Also, the explicit dependence of the controllability time on the speed of the moving endpoint is given.