Pacific Gas & Electric (PG&E) and its contractors have agreed to pay more than $50 million for causing two wildfires last decade that burned thousands of acres of national forest land in California.

In 2004, about 13,000 acres were consumed in the Power Fire in the Eldorado National Forest, east of Sacramento, which began after a crew of workers were careless with their cigarettes in a heavily wooded area with extreme hazardous fire conditions. The workers were employed by VCS Sub Inc., which PG&E had hired to trim trees and brush around a utility distribution line.

The fire damaged protected habitats for the northern spotted owl, caused harmful erosion into watersheds, and destroyed artifacts in Native American historical sites, according to federal prosecutors.

Both companies denied liability for the fire, but agreed to settle the case, as well as another involving a 2008 blaze known as the Whiskey Fire that burned more than 5,000 acres of Mendocino National Forest, three hours north of San Francisco.

In the second settlement, PG&E, ACRT Inc. and Davey Tree Surgery agreed to pay $5.5 million. The Whiskey Fire started “when PG&E transmission lines contacted branches of a gray pine tree that was less than two feet away from the line, well under the minimum amount of clearance required by state law,” government lawyers said.