In this paper, we investigate the H∞ control problem for a class of switched nonlinear systems based on passivity. The solvability conditions of the H∞ control problem are obtained by designing a state‐dependent switching law and state feedback controller of each subsystem. In addition, if all subsystems are not passive, we make a partition of the state space and design controllers for subsystems such that each subsystem has the passivity property on the associated region, and then obtain solvability conditions of the H∞ control problem. An example is provided to demonstrate the effectiveness of the proposed design method.