(CNN) — A herd of ravenous goats played a role in saving the Ronald Reagan Presidential Library after a fresh wildfire erupted in the city of Simi Valley in Southern California, forcing officials to order evacuations of nearby homes.

In addition the firefighters and aircraft crews that responded, a hungry herd of as many as 500 goats had helped create a firebreak in the brush that surrounds the hilltop complex, officials said. The goats ate up vegetation that would have fueled the fire.

“One of the firefighters mentioned that they do believe the goats’ fire line helped them fight this fire,” library spokeswoman Melissa Giller said. “They just proved today how useful they really are.”

Named the Easy Fire, the blaze — one of several California wildfires burning in dry and windy conditions — began Wednesday morning in the hills near Simi Valley and has already burned 1,300 acres, according to the Ventura County Fire Department. It threatened 6,500 homes and forced school closures.

View the latest updates on the California fires

Firefighting aircraft were dropping liquid in the area near the library in a bid the stop the fire, CNN’s Bill Weir reported from the scene.

“Non-stop water drops is probably what really saved us,” Giller said. “We are just grateful.”

Other crews assaulted the fast-moving flames from the ground.

“It’s a whole lot of fire trucks, a whole lot of heroes out here protecting President Reagan’s library,” John Heubusch, the library’s executive director, told CNN affiliate KTLA. “They’re doing a heroic job.”

Flames surrounded the 1,300-acre complex at one point. Heubusch said a fire had never come so close to the presidential library.

“The flames are licking right up the hills, right up to the parking lot,” he told KLTA. “I think the parking lot will save the library.”

Aerial video from affiliate KABC showed a long line of fire burning on a ridge in the hillsides, parts of which were near the library and a residential neighborhood. Thick smoke rose from the flames.

Simi Valley police ordered evacuations of the library — which also hosts the graves of the nation’s 40th president and first lady Nancy Reagan — and homes along a few nearby streets, police watch commander Adam Darough said.

A skeleton library staff — including security workers, the library director, the facility manager and the head curator — remained at the facility, trying to protect what they can, including artifacts and photographs, library spokeswoman Melissa Giller said.

The library houses Reagan’s presidential and California gubernatorial records, as well as the couple’s personal effects, including most of Nancy Reagan’s dresses dating back to the 1950s and her wedding ring.

The Simi Valley Unified School District closed all schools Wednesday because of the fire threat.

(Copyright (c) 2024 CNN. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

Join our Newsletter for the latest news right to your inbox