This paper provides a power-sharing strategy designed for an islanded grid that becomes isolated from the main grid due to faults or natural disasters. The proposed topology is introduced for post-disaster scenarios where the restoration process may be time-consuming (from a few hours to a few months). This system is equipped with a step-by-step power-sharing strategy based on priority, inputs from photovoltaic sources, and a diesel generator to enhance reliability. The DC–AC inverter control and AC–DC–AC control for the diesel generator are presented, which provide flexible real and reactive control. The system is divided into three priority load areas, and power sharing is conducted based on these priorities. The distinctive feature of the proposed strategy lies in its ability to manage power-sharing under different power generation conditions, prioritizing critical loads. The proposed method is implemented using the MATLAB Simulink environment. Simulation studies are performed under different solar irradiances and variations in the diesel generator’s output to validate the performance of the proposed method. The results demonstrate the practicality of the proposed algorithm in harnessing renewable resources and diesel generators and dynamically managing the energy consumption in loads.