A “pimp” was sentenced to state prison after admitting to selling two women for sex, prosecutors said.

Reshaun Hendren, 23, of Dorchester pleaded guilty to the charge of deriving support from prostitution and was sentenced to four to five years in state prison. The charge carries a maximum sentence of five years.

RELATED: Salem, Massachusetts, police officer charged with buying drugs from street dealer

According to the Suffolk County district attorney's office, prosecutors had more than enough evidence to convict Hendren had the case gone to trial.

“The evidence would have shown that Hendren rented a room at a downtown hotel, where the woman would have sex with men who responded to advertisements Hendren had placed online. Hendren photographed her using his phone, set the prices for the 'dates,' and kept the johns’ money for himself,” according to a release from the DA. “The evidence would have shown that he used threats, beatings, and drugs to keep her compliant with his demands. The evidence would have shown that Hendren used this victim to recruit the second victim, also a drug-addicted woman, for the same purposes.”

RELATED: Lowell, Massachusetts, man arrested for 1989 Philadelphia homicide

Hendren’s crimes came to light when one of his victims fled and notified police. The second of the two victims died from a drug overdose.

“This is the ugly reality that lies behind ads on the web sites that serve as platforms for prostitution,” Suffolk County District Attorney Daniel F. Conley said. “It’s a reality of violence and addiction, and it’s not a victimless crime.”

Matt Lee is a web producer for Metro New York. He writes about almost everything and anything. Talk to him (or yell at him) on Twitter so he doesn’t feel lonely @mattlee2669.