This paper investigates the linear quadratic integral (LQI)-based control of Z-source inverters in the presence of uncertainties such as parameter perturbation, unmodeled dynamics, and load disturbances. These uncertainties, which are naturally available in any power system, have a profound impact on the performance of power inverters and may lead to a performance degradation or even an instability of the system. A novel robust LQI-based design procedure is presented to preserve the performance of the inverter against uncertainties while a proper level of disturbance rejection is satisfied. The stability robustness of the system is also studied on the basis of the maximum sensitivity specification. Moreover, the bat algorithm is adopted to optimize the weighting matrices. Simulation results confirm the effectiveness of the proposed controller in terms of performance and robustness.