Give examples of ancient deification of rulers. What caused this phenomenon?

Evidence of this is the existence of the cult of the ruler, who was worshiped by people.
This phenomenon is due to the fact that the figure of the ruler was associated with the idea of public welfare, the preservation of traditions and order, stability and justice – and this, in turn, was associated with the protection of the gods.

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.