This paper discusses the modeling and control of a doubly fed induction generator (DFIG) for wind turbines, emphasizing its effectiveness as a renewable energy source and its role in grid connectivity. The authors present a mathematical model and a control strategy using a proportional integral (PI) controller for managing active and reactive power and achieving efficient operation across various wind speeds. Simulations conducted in MATLAB/Simulink demonstrate the successful implementation of the proposed control scheme, showcasing its advantages in maximizing energy capture from the wind.