Lawmakers in San Francisco have passed a bill to ban the use of facial recognition technology in surveillance by local agencies.

The San Francisco Board of Supervisors voted Tuesday to pass “the Stop Secret Surveillance Ordinance” that prohibits city and county law enforcement agencies from using facial recognition systems. The measure, which passed in an 8-1 vote, makes San Francisco the first U.S. city to outlaw the use of such technology for surveillance.