Sheep inside one of the barns died as a result of the 2.8-acre blaze on Gladding Road near Coon Creek.
When Cal Fire crews got to the scene of the blaze they also found a downed power line.
Air resources that were brought in for a retardant drop helped crews keep the flames from spreading to the surrounding hills and dry grass.
Firefighters will stay in the area throughout the night to make sure the hay near the barns does not catch fire again.
Cal Fire is investigating the cause of the fire.
Stay with FOX40 News and FOX40.com for more updates on this story.