One of the actual problems of modern control theory is the study of the stability of systems with switching modes of operation. Such systems are widely used for modeling technological processes, automatic control systems, mechatronic systems, etc. In recent years, they have been effectively used in problems of controlling formations of mobile agents. The main approach to solving this problem is the Lyapunov direct method. For families of subsystems corresponding to the studied hybrid systems, either common or multiple Lyapunov functions are constructed. However, the methods and algorithms for finding such functions are well developed only for linear systems. The problem of analyzing the stability of nonlinear systems with switching has not been sufficiently investigated. It should be noted that its solution is significantly complicated in the case when the systems under consideration contain a delay. In this paper, we study a class of complex systems with switching and distributed delay, modeling the interaction of linear and nonlinear homogeneous subsystems. These systems correspond to the Lyapunov critical case of several zero eigenvalues of the matrix of the linearized system. Note also that under certain additional restrictions on nonlinearities, they are Lurie indirect control systems. The presence of distributed delay can be due to the use of PID controllers. For the considered hybrid systems, new approaches to constructing Lyapunov—Razumikhin functions and Lyapunov—Krasovsky functionals are proposed, which guarantee stability under any switching law. In the case when such functions and functionals cannot be selected, using multiple functionals, classes of switching laws are determined under which stability is preserved. The efficiency of the developed approaches is demonstrated on the example of a controlled mechanical system with a PID controller.