In this paper, an intelligent control of the rotary inverted pendulum by fuzzy logic is presented. Specifically, the design consists of a Takagi-Sugeno fuzzy model to approximate the non-linear system to a succession of points where a linear system is described. A feedback gain is obtained that allows the stabilization of the inverted pendulum in a higher attractor than in the case of analytic Full State Feedback controller or Linear Quadratic Regulator.