Lord Rama is the ideal king, who took care of all living entities in Ayodhya like His children, establishing the history of Ramayana as we know it.