California has banned smoking on beaches and in state parks.

The bill, which was signed by Democratic Governor Gavin Newsom Friday, will also forbid the disposal of cigarette and cigar waste on beaches. Californians who do want to light up will have to make due in parking lots, the Associated Press reported.

Violators of the new law will face a fine of $25.

Golden State lawmakers had made repeated efforts to pass the ban in previous years, but had consistently been stymied by Newsom’s, predecessor, Gov. Jerry Brown.

“We have many rules telling us what we can and can’t do and these are wide open spaces,” Brown said in the past, the wire service reported.

The state will spend roughly $2 million on signage along public beaches to inform Californians about the new law.