This article contains references to rape.
Pakistan has approved the chemical castration of rapists as part of sweeping new legislation sparked by outcry over the gang rape of a mother on a motorway.
New laws approved by President Arif Alvi on Tuesday will see rape cases expedited through the courts and create the country's first national sex offenders register.
"The provision of the chemical castration of repeat as well as first-time sex offenders... was added in the Anti-Rape Ordinance 2020", the president's office confirmed Wednesday.
Pakistan is a deeply conservative and patriarchal nation where victims of sexual abuse often are too afraid to speak out, or where criminal complaints are frequently not investigated seriously.
In September, protests erupted after a mother was raped on the side of the road in front of her children when her car broke down near Lahore.
Prime Minister Imran Khan responded by calling for the chemical castration of rapists, which involves using drugs to reduce a person's libido.
Mr Khan had said the worst sex crimes should be punishable by public hangings but added this could impact trade with partners that oppose the death penalty, such as the European Union.
Rights activists have warned the provision of chemical castration could affect Pakistan's international human rights obligations.
"Chemical castrations are cruel, inhuman and degrading and will leave the flawed criminal justice in place", said Rimmel Mohydin, Pakistan campaigner at Amnesty International.
Nighat Dad, a women's rights activist, praised the content of the new legislation, but said it was unclear how chemical castration would be either a "deterrent or rehabilitative".Under the new laws, special courts will be established to try cases of rape and sexual abuse against women and children, which must be completed within four months.
Members of the Women Democratic Front group take part in a rally to condemn a rape on a deserted highway, in Islamabad, Pakistan, Saturday, Sept. 12, 2020. Source: AP
They also establish anti-rape cells across the country for conducting initial investigations, and medical examinations within six hours of filing a police complaint - while abolishing an invasive medical examination known as the two-finger virginity test for rape victims.
The test involves a medical officer inserting two fingers into a rape victim's vagina, to assess her sexual history.
The laws come into effect immediately but must be ratified by parliament within three months.
It would come down to the discretion of a trial judge to order chemical castration, the president's office said.
If you or someone you know is impacted by sexual assault, family or domestic violence, call 1800RESPECT on 1800 737 732 or visit . In an emergency, call 000.