Abstract:[Purposes]A stochastic multigroup SIRI model with markovian switching is studied. [Methods]Firstly, by using the basic theory of stochastic differential equations, the model solution is obtained to be positive, existing and unique. Secondly, by constructing some appropriate new Lyapunov functions and applying the knowledge of graph theory and the inequality scaling skills, the sufficient conditions for the extinction and persistence of the epidemic model are obtained. [Results]The existence and uniqueness of the positive solution of the stochastic system are obtained. At the same time, the sufficient conditions for disease extinction and persistence in the mean of the disease are obtained. The threshold for the model without random disturbance is obtained. [Conclusions]By analyzing theorem 1, the parameters of the adjustment system can be adjusted, that is, some strategies can be adopted to adjust the dynamics of the disease and suppress the outbreak of the disease.