San Francisco has become the first US city to ban the use of facial-recognition software by city agencies and the police.
The city's Board of Supervisors that voted in favour of the ban said the technology puts people’s safety at risk and hinders efforts to fight crime.
It, however, carves out an exception for the city's international airport and port.
The legislation also calls for approval from city administrators before introducing new surveillance technology.
Experts say the move could also spur other local governments to take similar action.

Three students killed in Philippine school shooting, including gunman, officials say
At least 16 killed in attack on police facility in northwest Pakistan
India finds Nestle baby food sample substandard, takes legal action
Indonesia recovers 3 bodies from capsized ship in Java Sea
Gaza building collapse: Rescue efforts end after 45 saved
US officials made rare Myanmar visit to free American businessman
Trump derides EU pitch to Canada as 'laughable', threatens more tariffs
Australia cracks down on student and backpacker visas to curb migration
