Police said that Dhanarajasekhar had confined the 19-year- old girl, his friend's niece, in a house and had subjected her to various forms of torture, including beatings.
On a complaint from the girl's aunt and parents, the man was arrested today and the girl set free, they said.
Police said they are investigating why the man confined the girl to a house for such a long period and tortured her.
Initially, the girl was staying in the college hostel but moved to a private accomodation three months back, police said.
More From This Section
Her parents grew worried when they could not contact her for some time and questioned Dhanarajasekhar, who had given them evasive replies.
They were also told by the college management that their daughter had not been coming to the college for the past three months, following which they again questioned Dhanarajasekhar about her whereabouts.
Police said that Dhanarajasekhar had confessed to having kept the girl in illegal detention in the house for three months.
The girl also told police that she had been tortured by him.