The San Francisco Board of Supervisors has just put an end to a policy that would have required local law enforcement to detain undocumented immigrants for 48 hours so that federal immigration services could deport them.

The unanimous vote occurred on Tuesday after much pushback from government officials and immigration activists alike.

The dismantling of the policy will not apply to people arrested for certain violent crimes, but it will ensure that non-violent undocumented immigrants who get reprimanded for things like traffic violations aren’t caught in a system that would force them to be deported and taken away from family.

The original policy, called Secure Communities, was put in place to allow that illegal immigrants in custody be detained for up to 48 hours extra so that immigration officers could get them deported. A recent Opposing Views report showed that there was a growing distaste for this policy, and now, San Francisco is at the forefront of pushing back against it.

“This legislation has passed and people do not have to fear immigration customs enforcement as much as they have,” said San Francisco Supervisor John Avalos.

The legislation that puts an end to Secure Communities is called Due Process for All, and there are many people backing it. However, some people say that there are holes in the legislation and that not every aspect of it is clear.

Still, the board made a unanimous vote to end the policy, and because of that, San Francisco Mayor Ed Lee has no choice but to sign it into law. It could take up to 10 days for it to be signed, and possibly another 30 days for it to take effect.