In this paper, an optimal fuzzy sliding mode controller is used for tracking the position of robot manipulator, is presented. In the proposed control, initially by using inverse dynamic method, the known sections of a robot manipulator’s dynamic are eliminated. This elimination is done due to reduction over structured and unstructured uncertainties boundaries. In order to overcome against existing uncertainties for the tracking position of a robot manipulator, a classic sliding mode control is designed. The mathematical proof shows the closed-loop system in the presence of this controller has the global asymptotic stability. Then, by applying the rules that are obtained from the design of classic sliding mode control and TS fuzzy model, a fuzzy sliding mode control is designed that is free of undesirable phenomena of chattering. Eventually, by applying the PSO optimization algorithm, the existing membership functions are adjusted in the way that the error tracking robot manipulator position is converged toward zero. In order to illustrate the performance of the proposed controller, a two degree-of-freedom robot manipulator is used as the case study. The simulation results confirm desirable performance of optimal fuzzy sliding mode control.