Microgrids have lately been employed in power systems to improve reliability and power quality. This paper shows the dynamic modeling and control of a hybrid gridconnected microgrid consisting of a photovoltaic plant, energy storage system, DC loads, and AC loads. The microgrid is provided with a hydrogen storage system consisting of an electrolyzer, a fuel cell, and a Hydrogen tank. The microgrid is designed to operate independently and supply the load in case of a grid outage. Both grid-connected and isolated modes are modeled using the Simulink software package and it is concluded that the control systems of the microgrid efficiently delivered the required energy to loads in both modes while keeping the microgrid stable. This paper proposes that hybrid-AC/DC microgrids are capable of increasing power flow systems efficiency, increasing the deployment of distributed generation, and being independent of the grid if needed.