In this article, one of the urgent problems put forward by independent Kazakhstan is the problem of training military personnel from an early age in terms of statehood and integrity. To achieve the result of the indicated problem, the author of the article says that it is necessary from an early age to form in the minds of the young generation the ability to historical thinking and work on nationalism within the framework of the subject of national history. The author of the article also talks about the place of national history in society and its significance. The high level of students' ability to historical thinking is a social phenomenon that can be responsible for the viability and security of the state in the future. By being able to teach the subject of history correctly, we can increase the amount of quality military resources that the state will need in the future.