The four, including the paternal uncle of the girl, along with a 17-year-old boy had raped the girl and sexually abused her for the last one year.
They were arrested recently on a complaint from the girl.
The order detaining them under the Goondas Act was served on the four accused in the central jail here, police said.
The girl was staying with her uncle as her mother and father had separated.
The boy, a painter, who exploited the girl with whom he was in love, is lodged in the juvenile home.