Rama's secret is to outgrow the beast to discover the divine. The battle between the Devas and the Asuras is aligned vertically, while the battle between the Manavas and the Rakshasas is aligned horizontally. Humans who uphold dharma (good) are called manavas while the humans who uphold adharma (bad) are called rakshasas who are described as demons. Rama is the only avatar of Vishnu to be worshipped as king. Rama is a man who upheld dharma as he upheld the code of civilization and refused to succumb to animal instincts despite temptation. Rama's role is to stay alert and ensure everybody behaves as they are expected to and if things go wrong, he has to rush to help as Vishnu would to set things to right. Rama has to remind people of their obligations to outgrow animal instincts and make sure things keep moving. In addition, Rama as the king has to punish law-breakers and reward law-abiders as Vishnu would do as well.
There are different accounts that state the different number of Vishnu avatars. Some say there are 10, some say 12, while other accounts state that there are 22 avatars of Vishnu. However, no matter how many avatars there are, it often has been commented that the order of Vishnu's descents follows the evolution of the man and the human avatars follow the varna system. An avatar redefines dharma for a particular age in time. Avatars are sent to this earth to balance human demands with nature's needs for as long as possible.
Bibliography: Seven Secrets of Vishnu (Rama) by Devdutt Pattanaik (
link)