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: Lockdown-Violating Underground Gatherings Investigated Over Recent Spate of San Jose Shootings

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

READ MORE: The Game Changer: New Test Helps Doctors Find Hidden Prostate Cancer

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: Oakley School Board Interim Trustees Vote to Fill Vacant Seats; Reject Special Election

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