In this article, we process the modeling and control of a global chain of the wind energy conversion system based on a permanent magnet synchronous generator, and the injection of the produced energy into electrical grid. The proposed control technique of the wind energy system is based on a sliding mode control which is designed for a variable speed wind turbine. Sliding mode control is assessed on a wind turbine to supply three phases grid. The aim in this work is to operate over all the wind conversion system at its maximum power point. Initially, three controls have been designed by sliding mode control: the first is for electromagnetic torque of the used permanent magnet synchronous generator, the second is for the machine side converter, and the last is for the grid side converter. Thereafter, another proportional integral controller has been designed for the phase looked loop. Finally, the permanent magnet synchronous generator–based wind turbine and the grid are modeled, and proposed controls are applied, various simulations results by MATLAB/SIMULINK environment are presented and discussed.