In a landmark ruling, a South Korean court, on Thursday, sentenced a 31-year-old pedophile to 15 years in jail and ordered the country’s first ever chemical castration.

The ruling is the first since the country passed a law in 2011 that allows hormonal treatment or chemical castration for convicted child molesters, who are at risk of repeating their crimes.

The defendant, only known by his surname Pyo, was charged with having sex with five teenagers — whom he met through a smartphone chat service — six times between November 2011 and May 2012, South Korea’s Yonhap news agency reported.

Mr. Pyo then threatened to circulate the online video footage of them engaging in sexual acts and nude photos of the minors. He also raped them threatening with deadly weapons

“(Pyo) committed the crimes against multiple victims for a long period of time. (The court) deems that he has a distorted sexual awareness and excessive sexual desire, which makes it impossible for him to control sexual impulses by himself,” Judge Kim Ki-young of the Seoul Southern District Court said in his ruling.

The court also ordered that Mr. Pyo’s information be made available to the public for 10 years and that he should wear an electronic monitoring anklet for 20 years after his release from prison. Mr. Pyo was also ordered to undergo 200 hours of therapy to treat his sexual impulses, the court said.

South Korea was the first country in Asia to adopt this type of treatment, although Germany, Denmark, Sweden, Poland and the U.S. state of California have used it for years, the report said.

The country’s Justice Ministry, meanwhile, said Mr. Pyo would be administered with the first medication designed to reduce sex drive, compulsive sexual fantasies and capacity for sexual arousal, two months ahead of his release from the prison.

The Seoul court’s verdict came at time when India is debating whether to introduce punishment like chemical castration to check crimes against women in the wake of the horrific gang-rape of a 23-year-old girl in Delhi, who died in Singapore last month.