Context. With the advent of mobile communication networks, the signal-interference situation became sharply complicated. An increasing number of radio electronic devices for various purposes lead to the formation of the multiple nature of electromagnetic interactions between them. At the same time, the deficit of frequency resources becomes even more important, the problem of electromagnetic compatibility becomes aggravated. The ways of solving this problem can be found using the cognitive distribution of the frequency resource with repeated use of frequencies. Thus, the optimization of the distribution of the frequency resource in cognitive radio networks and the development of an algorithm for the allocation of a frequency resource with the repeated use of frequencies is an actual scientific task. Objective. The aim of the study is to provide electromagnetic compatibility in the cognitive distribution of resources in a mobile communication network.Methods of research are based on the basic principles of radiophysics, telecommunications theory, system analysis, mathematical statistics, probability theory, optimization theory, mathematical and simulation modeling.Results. The situation and the most electromagnetic situation in mobile communication networks are greatly complicated by the fact that various random factors, which are difficult to forecast, are introduced into this environment. Under these conditions, it is not always possible to calculate the electromagnetic situation in advance and solve the problem of electromagnetic compatibility with sufficient accuracy, and often it is simply impossible due to a priori uncertainty. The problem of electromagnetic compatibility for mobile communication networks must be solved at the stage of its operation in real time. An algorithm for solving the problem of optimization of frequency resource allocation for mobile communication networks is proposed. The algorithm is based on the method of local optimization – one of the approximate methods of discrete programming. In this case, the local optimality condition is that the operating frequency that is assigned to the next subscriber station should be close to the frequency assigned at the previous step, but electromagnetic compatibility requirements must be met.Conclusions. For the first time, a method has been developed for ensuring electromagnetic compatibility in the allocation of a frequency resource in a mobile communication network, which consists of an algorithm with repeated use of frequencies. The use of this method makes it possible to reduce the frequency band by 2 to 3 times.