Lord Rama is remembered for giving away the throne for 14 years just for his father's request. After returning from his exile he received the kingdom from his brother Bharat, who took care of the kingdom during lord Rama's exile. He ruled the kingdom wisely and justly. But a good king can be compared not only to Lord Rama but many others also such as King Harshavardhana, Chandragupta Maurya and many others from Indian History. Hope this is helpful.