Śrīmad-Bhāgavatam · Text 1.3.22
Who is speaking and story frame
नरदेवत्वमापन्न: सुरकार्यचिकीर्षया ।
समुद्रनिग्रहादीनि चक्रे वीर्याण्यत: परम् ॥ २२ ॥
nara-devatvam āpannaḥ
sura-kārya-cikīrṣayā
samudra-nigrahādīni
cakre vīryāṇy ataḥ param
In the eighteenth incarnation, the Lord appeared as King Rāma. In order to perform some pleasing work for the demigods, He exhibited superhuman powers by controlling the Indian Ocean and then killing the atheist King Rāvaṇa, who was on the other side of the sea.
Read Śrīla Prabhupāda's purport on Vedabase.io