An approach using the sliding mode control theory to control a class of nonlinear oscillators with a chaotic attractor is presented. It can control chaotic motion not only to a steady state but also to a desired periodic orbit. Especially, the method is easy to implement and does not require the exact dynamics model in advance.