In this paper, a Two-Degree-of-Freedom-Controller(TDFC) for DC motors based on inverse dynamics and the fuzzy technique is presented. The proposed controller includes the inverse dynamic model of a DC motor system, a prefilter and a fuzzy compensator. The model of the system is characterized by a nonlinear equation with coulomb friction. The prefilter eliminates high frequency effects occurring when the inverse dynamic model is implemented. The fuzzy compensator is designed for tracking the change of the reference input and simultaneously regulating the error between the reference input and the system output which can be caused by disturbances. The optimal parameters of both the model and the compensator are identified by a real-coded genetic algorithm. An experimental work on a DC motor system is carried out to verify the performance of the proposed controller.