This article presents the modeling and optimization control of a hybrid water pumping system utilizing a brushless DC motor. The system incorporates battery storage and a solar photovoltaic array to achieve efficient water pumping. The solar array serves as the primary power source, supplying energy to the water pump for full-volume water surrender. During unfavorable weather conditions or when the photovoltaic array is unable to meet the power demands of the water pump, the battery discharges only at night or during inadequate solar conditions. Additionally, the photovoltaic array can charge the battery on its own when water distribution is not necessary, negating the need for external power sources. A bi-directional charge control mechanism is employed to facilitate automatic switching between the operating modes of the battery, utilizing a buck-boost DC–DC converter. The study incorporates a control system with loops for battery control and DC voltage control within the bidirectional converter. The water cycle algorithm adjusts four control parameters by minimizing an objective function based on tracking errors. The water cycle optimization is compared to other methods based on overshoot and settling time values to evaluate its performance, showcasing its effectiveness in analyzing the results.