A microgrid is a small-scale power supply network that enables local power generation and distribution for a small community. It comprises multiple small power sources, allowing flexibility and efficiency. Microgrids can operate connected to or independent of the main utility grid. DC microgrids in particular are simpler to control and interface with renewable energy sources. They provide high reliability and efficiency. Microgrids can reduce transmission losses and emissions while providing reliable power to critical loads. Future trends include making microgrids more intelligent and robust through controls and ability to seamlessly transition between grid-connected and island modes.