Communicated by S. WiseThe Legendre pseudospectral method is developed for the numerical solution of nonlinear Duffing equation involving both integral and non-integral forcing terms. By using differentiation matrix, the problem is reduced to the solution of a system of algebraic equations. The method is general, easy to implement, and yields very accurate results. Numerical experiments are presented to demonstrate the accuracy and the efficiency of the proposed computational procedure.