Based on the analysis of the state of society with extremist elements, the aim of the study is to simulate social phenomena taking into account the emotions and psychological state of a person to determine the effectiveness of counter-terrorist actions of the state. A conceptual model of society with radical personalities, taking into account social, cognitive, emotional and psychological factors affecting the development of extremist manifestations, is developed. The model formalizing these factors and counterterrorist actions of the state is constructed. With the help of agent modeling in the Anylogic environment, this model is implemented and the results are obtained, allowing to determine the dynamics of extremist manifestations, is developed. The model formalizing these factors and counterterrorist actions of the state is constructed. With the help of agent modeling in the Anylogic environment, this model is implemented and the results are obtained, allowing to determine the dynamics of extreme manifestations in society, depending on the measures aimed at their prevention. The interface by means of which the analyst can change the parameters influencing the processes occurring in the model and study the reaction of the system to such changes is proposed.