MONTEREY (CBS / AP) – Voters in an oil-producing county in California have cracked down on fracking and new oil-well drilling.

Monterey County voters adopted a ballot measure Tuesday that will phase out new oil drilling and ban fracking.

READ MORE: Oakland Police Chief Armstrong Appeals to Public in Wake of City's 100th Homicide; 'We Gotta Do the Work'

Oil companies had helped raise more than $5 million against the measure. Bernie Sanders and actor Leonardo DiCaprio were among those campaigning for the Monterey County fracking ban.

READ MORE: East Bay Construction Company Owners Charged With $5M Workers' Compensation Fraud

Monterey County is the state’s fourth-biggest oil-producing county. It’s the seventh county in California to ban fracking.

MORE NEWS: 2 Die In Separate Weekend Crashes In San Francisco

© Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.