ABSTRACT In the present paper, an optimal control method based on State-Dependent Riccati Equation (SDRE) is used to design a controller for DC microgrid system. In the proposed method, optimal control law is proposed for stabilisation and tracking of online reference paths using pseudo-linearisation and by preserving all the nonlinear characteristics of the system. The proposed method not only traces reference paths, but also is able to minimise control effort and energy consumption. Simulation results indicate efficient performance of the proposed method with regard to tracking reference paths despite the changes in operating point, external load disturbance and parametric uncertainty in comparison with linear quadratic regulators.