In this paper a novel distributed control algorithmfor voltage regulation and current sharing in Direct Current(DC) microgrids is proposed. The DC microgrid is composedof several Distributed Generation units, interfaced with Buckconverters, and unknown current loads. The proposed controlstrategy exploits a communication network to achieve currentsharing using a consensus-like algorithm. Voltage regulation isachieved by constraining the system to a suitable manifold. Athird order Sliding Mode controller is developed to reach thedesired manifold in a finite time. The proposed control scheme isformally analyzed, proving the achievement of current sharing,while guaranteeing that the average voltage of the microgrid isidentical to the average of...