BENICIA (CBS SF) — A refinery in Benicia has agreed to pay $340,000 to settle a case alleging it violated air quality rules, officials with the Bay Area Air Quality Management District announced Friday.

Valero Refining Inc. agreed to pay the $340,000 to settle 28 alleged violations, most of which occurred in 2014. Air district officials said the violations were corrected soon after they were found.

READ MORE: Meier Scores Franchise-Record 5 Goals As Sharks Rout Kings, 6-2

Air quality rules are meant to keep harmful pollution out of Bay Area air, according to air district officials.

READ MORE: COVID: Lower Levels Of Viral RNA In Wastewater May Signal Turning Point In Surge

The money paid by the refinery will be used by the air district to pay for inspections and for enforcing air quality rules such as the ones that led to the settlement.

The BAAQMD is responsible for keeping the nine-county Bay Area’s air clean.

MORE NEWS: UPDATE: Firefighters Battle Fire In Abandoned Home In San Jose

© Copyright 2017 by CBS San Francisco and Bay City News Service. All rights reserved. This material may not be published, broadcast, rewritten or redistributed