Partial shading is a common problem in photovoltaic (PV) systems, known for its difficulty. Numerous attempts have been conducted to mitigate this problem. Some of these efforts deploy metaheuristic optimization with a view to tracking the multiple-peak P–V curve in a partial shading PV system. Hence, this paper proposes a novel metaheuristic algorithm to track the maximum power point of PV systems using the Spotted Hyena Optimization (SHO) algorithm. When evaluated, the SHO algorithm proved to be very fast, robust, and accurate in standard conditions, Partial Shading Conditions (PSCs), and irradiance variations. Also, the results reveal a remarkable improvement in the performance when we compare the SHO algorithm with the Grey Wolf Optimization (GWO) algorithm and the Perturb and Observe (P&O) algorithm.