AbstractThis paper presents the design of a robust proportional integral derivative (PID) controller for the control of a single phase microgrid voltage. A microgrid consists of loads, distributed generation units and several power‐electronics interfaced LC filter and voltage source inverter. These loads are unknown and parameters are uncertain which produce unmodeled load dynamics. This unmodeled load dynamics reduces the voltage tracking performance of the microgrid. The proposed controller gives the robustness of the system with unmodeled load dynamics. Under different kinds of uncertainties, PID controller guarantees the stability and provides zero steady‐state error and fast transient response. The robustness and optimal performance of the controller is obtained by using linear matrix inequality approach. The performance of the controller under different uncertainties is studied. Results indicate the robustness and high voltage tracking performance of the microgrid system.