Saudi Arabia was the only country in the world to ban women from driving. The royal decree yesterday comes into effect next summer, but it comes nearly three decades after women began agitating for the right to drive.
As recently as 2013, dozens of women uploaded videos online of themselves behind the wheel of a car during a campaign launched by Saudi rights activists.
While women in other Muslim countries drove freely, the kingdom's blanket ban attracted negative publicity.
Neither Islamic law nor Saudi traffic law explicitly prohibited women from driving, but they were not issued licenses and were detained if they attempted to drive.
More From This Section
The decision to change course and grant women licenses was praised by the White House, which said President Donald Trump views the change as "a positive step toward promoting the rights and opportunities of women in Saudi Arabia."
The secretary-general of the United Nations Antonio Guterres described it as "an important step in the right direction."
Prince Khaled bin Salman, Saudi Arabia's ambassador to Washington and the king's son, said that letting women drive is a "huge step forward" and that "society is ready."
"This is the right time to do the right thing," he told reporters in the US Women will be allowed to obtain licenses without the permission of a male relative.
Aziza Youssef, a professor at King Saud University and one of Saudi Arabia's most vocal women's rights activists, said women were "happy" but also that the change was "the first step in a lot of rights we are waiting for."
Saudi history offers many examples of women being punished simply for operating a vehicle.
In 1990, 50 women were arrested for driving and lost their passports and their jobs. More than 20 years later, a woman was sentenced in 2011 to 10 lashes for driving, though the late King Abdullah overturned the sentence.
As recently as late 2014, two Saudi women were detained for more than two months for defying the ban on driving when one of them attempted to cross the Saudi border with a license from neighboring United Arab Emirates in an act of defiance.
For years, the kingdom has incrementally granted women more rights and visibility, including participation in the Olympic Games in London and Rio, positions on the country's top consultative council and the right to run and vote in local elections in 2015.
Despite these openings, Saudi women remain largely subject to the whims of men due to guardianship laws, which bar them from obtaining a passport, traveling abroad or marrying without the consent of a male relative. Women who attempt to flee abusive families have also faced imprisonment or been forced into shelters.
Women and men also flooded a main street in the capital, bopping their heads to pop music as green lights flickered overhead in the color of the flag.
The scene was shocking for a city in which gender segregation is strictly enforced and where women are seldom seen walking the streets, much less mixing in close quarters with males.
This year, the government announced that for the first time girls in public schools would be allowed to play sports and have access to physical education.
The decree stated that the majority of Muslim scholars on the country's highest clerical council agreed that Islam allows women the right to drive.
However, many of those same ultraconservative clerics, who wield power and influence in the judiciary and education sectors, have also spoken out in the past against women driving, playing sports or entering the workforce. They argue such acts corrupt society and lead to sin.
Almost immediately after the news broke, an Arabic hashtag on Twitter was trending that said: "The women of my house won't drive."
Women in Saudi Arabia have long had to rely on male relatives to get to work or run errands, complicating government efforts to boost household incomes as lower oil prices force austerity measures. The more affluent have male drivers.
Saudi rights activist Sahar Nasief, who lives in in the Red Sea city of Jiddah, has for years been involved in the campaign for women to drive. She said she couldn't believe the news when her son called to tell her. She immediately opened Saudi state TV to confirm if it was true.
"I am very optimistic about the future," she said.
"Things have to change. People are demanding it. Young people don't want to live the way we lived. They want to live better. They want to live how other people are living.