This paper addresses the optimization and stabilization problems of nonlinear systems subject to parameter uncertainties. The methodology is based on a fuzzy logic approach and an improved genetic algorithm (GA). The TSK fuzzy plant model is employed to describe the dynamics of the uncertain nonlinear plant. A fuzzy controller is then obtained to close the feedback loop. The stability conditions are derived. The feedback gains of the fuzzy controller and the solution for meeting the stability conditions are determined using the improved GA. In order to obtain the optimal fuzzy controller, the membership functions are further tuned by minimizing a defined fitness function using the improved GA. An application example on stabilizing a two-link robot. arm will be given.