AMMAN, Jordan — The bright, 14-year-old Jordanian girl lived with her family in the capital, Amman.

Her cousin, a taxi driver 10 years her senior, had twice asked the girl’s father for permission to marry her.

Both times she and her father had demurred: Lubna was too young, they said, and besides, she routinely ranked at the top of her class, and hoped to finish her studies and go on to become a doctor.

Soon after, Lubna’s cousin picked her up from a hair salon in his taxi, drove her to a secluded spot and raped her.

Back then, in 1983, activist Asma Khader was a lawyer appointed by the criminal court to evaluate the damage inflicted on Lubna.

“He brought me half- conscious to my parents’ house,” the teenager told Khader. “He boasted, ‘I’ve taken her. Now you have to marry her to me, and I’m still ready to do so even though she’s ‘damaged.’ ”

Lubna was referring to a long-reviled section of Jordan’s penal code, Article 308, that allows rapists to avoid prison if they marry their victims for at least three years in what its proponents said was a bid to protect victims’ honor.

The law was amended last year to allow a rapist to marry a victim only if she was between the ages of 15 and 18 and if the act was consensual. The cases were classified as rapes even if the sex was consensual because of the girl’s age.

And last month, Jordan’s Cabinet revoked Article 308, following the recommendations of a royal judiciary committee tasked with reforming the country’s penal code. The decision requires ratification by the parliament, which is expected to discuss and vote on the country’s penal code in the coming months.

“It has taken us almost 35 years to get here,” Khader said in a phone interview. In the intervening decades she has become a top women’s rights campaigner and is executive director of the Sisterhood Is Global Institute, a nonprofit think tank.

According to Jordan’s Ministry of Justice, 159 rapists avoided punishment by marrying their victims from 2010 to 2013. The government, Khader said, stopped reporting figures after 2013 to avoid controversy. Victims’ advocates say cases of rape areunderreported in Jordan’s conservative society, as they are in many places.

Other countries with similar conditions include Lebanon, where activists have been pushing parliament to abolish a law allowing rapists to marry their victims, known as Article 522.

“We did a survey, and found that only 1% of Lebanese knew of this article. We set it as a challenge to create a wave of support to cancel this law,” said Alia Awada, advocacy and campaign manager for the women’s rights organization ABAAD in a phone interview.

Among the ways activists have protested the law was to hang wedding dresses by nooses in a haunting display along Beirut’s corniche area. Billboards also featured tattered wedding dresses with the tagline, “White does not cover rape.”

In Jordan, supporters of Article 308 saw it as satter, or protection, for the victim, Khader said.

“They believe that if the rapist doesn’t marry the victim then she will have no chance to marry, and will even bring shame to the family and she could be killed so as to protect the family’s honor.”

Khader said Lubna’s case has stayed with her through the years.

“Most people submit, but Lubna and her father refused that she marry her cousin. And her refusal was something everyone mock-ed, in her extended family and even in the court,” Khader said.

“Her teacher didn’t let her go back to her school. The family had to move ... to another area. All this because a man wanted this girl and took advantage of this law.”

Khader said she and Lubna have stayed in touch. (Lubna declined to be interviewed and asked not to be identified by her surname for privacy reasons.)

“She’s now a doctor, and she married one of her colleagues. She lives well,” said Khader. But she was the exception: The fight to repeal 308, Khader said, is for those women who weren’t able to refuse.

Rana Husseini, a journalist and author of “Murder in the Name of Honor,” is among those who are hopeful that Jordan’s parliament will take the final step to eliminate the law.

“It’s timely. In the past, the government didn’t even acknowledge we had a problem and it wasn’t interested in changing any laws,” Husseini said in a phone interview.

She said previous attempts to repeal articles that were unfair to women, including 308 and 98, which allowed perpetrators of so-called honor killings to go free after six months, had been met with a lot of resistance. Article 98 remains on the books.

“Society wasn’t ready, and we didn’t do proper lobbying, so there was a backlash,” Husseini said.

Egypt and Morocco ended their “rape marriage” laws in 1999 and 2014, respectively. But most countries in the region still have such laws.

Suad Abu-Dayyeh, a regional consultant for Equality Now, a human rights organization, said the move against Article 308 had come as “a result of the accumulation of the efforts of civil society over the years to change such laws.”

Abu-Dayyeh said there was also political will from government leaders.

“It’s a shame that we have some article in our penal code that deals with sexual assault and rape in this way ... and Jordan is a signatory to a number of international agreements, including the Convention on the Elimination of All Forms of Discrimination Against Women,” she said. “Every time Jordan goes to review the situation of human rights in the country, it finds itself embarrassed because of a number of laws, including 308.”

Bulos is a special correspondent.