In this paper, we proposed an effective method based on the scaling function of Daubechies wavelets for the solution of the brachistochrone problem. An analytic technique for solving the integral of Daubechies scaling functions on dyadic intervals is investigated and these integrals are used to reduce the brachistochrone problem into algebraic equations. The error estimate for the brachistochrone problem is proposed and the numerical results are given to verify the effectiveness of our method.