One of the most pressing problems facing scientific pedagogy is the formation of personality. Our national pedagogy prefers to study these factors not in isolation, but in interaction and unity. Research and analysis of "Khamsa" in terms of this problem shows that the genius Nizami, a philosopher, poet and educator, realized the importance of each of these factors, and in his poems put forward relevant local ideas and ideas. Try to prove our point with concrete examples. First of all, let's pay attention to the opinion of the great poet-educator about the factor of heredity, its role in the formation of personality.