In this paper, we consider the dynamics of a stochastic Gilpin–Ayala model with regime switching and impulsive perturbations. The Gilpin–Ayala parameter is also allowed to switch. Sufficient conditions for extinction, nonpersistence in the mean, weak persistence, and stochastic permanence are provided. The critical number among the extinction, nonpersistence in the mean, and weak persistence is obtained. Our results demonstrate that the dynamics of the model have close relations with the impulses and the Markov switching.