After His marriage He accepted exile in the forest for fourteen years by the order of His father, Maharaja Dasaratha. To help the administration of the demigods, He killed fourteen thousand demons, and by the intrigues of the demons, His wife, Sitadevi, was kidnapped by Ravana. He made friendship with Sugriva, who was helped by the Lord to kill Vali, brother of Sugriva. By the help of Lord Rama, Sugriva became the king of the Vanaras (a race of gorillas). The Lord built a floating bridge of stones on the Indian Ocean and reached Lanka, the kingdom of Ravana, who had kidnapped Sita. Later on Ravana was killed by Him, and Ravana's brother Vibhisana was installed on the throne of Lanka. Vibhisana was one of the brothers of Ravana, a demon, but Lord Rama made him immortal by His blessings. On the expiry of fourteen years, after settling the affairs at Lanka, the Lord came back to His kingdom, Ayodhya, by flower plane. He instructed His brother Satrughna to attack Lavnasura, who reigned at Mathura, and the demon was killed. He performed ten Asvamedha sacrifices, and later on He disappeared while taking a bath in the Sarayu River. The great epic Ramayana is the history of Lord Rama's activities in the world, and the authoritative Ramayana was written by the great poet Valmiki.
(Srimad Bhagavatam 1.12.19)