grhito lilaya strinam
mukto yena kapir yatha
grhitah—was arrested by force; lilaya—very easily; strinam—of the women; samaksam—in the presence; krta-kilbisah—thus becoming an offender; mahismatyam—in the city known as Mahismati; sanniruddhah—was arrested; muktah—released; yena—by whom (Kartaviryarjuna); kapih yatha—exactly as done to a monkey.
When Ravana attempted to insult Kartaviryarjuna in the presence of the women and thus offended him, Kartaviryarjuna easily arrested Ravana and put him in custody in the city of Mahismati, just as one captures a monkey, and then released him neglectfully.
Link to this page: https://prabhupadabooks.com/sb/9/15/22