EDEN, N.C. (WGHP) — Crews responded Thursday morning to a massive building fire at the historic Spray Cotton Mill building in Rockingham County.

The building on Church Street in Eden caught fire at about 10:40 p.m. Wednesday, and crews from 23 agencies fought the flames well into Thursday morning before getting it under control.

At least one wall of the historic mill collapsed from the heat and flames, but Eden Police Chief Clint Simpson said the fire has been contained to one of the four buildings.

Firefighters were able to scale back their response after getting the fire under control, and no buildings or other businesses nearby are at risk.

In the meantime, authorities have asked people to avoid Meadow Road at Stadium Drive, Church Street at Morgan Road and Boone Road at Early Avenue.

Officials think the building was unoccupied, but they have not been able get inside to confirm that, and the cause of the fire is still being investigated.

The Spray Cotton Mill property was sold in 2017 and has been a fixture in the Eden community for more than 100 years.

The city of Eden thanked the following agencies for assisting with the response: Monroeton Volunteer Fire Department, Ruffin Volunteer Fire Department, Wentworth Volunteer Fire Department, Williamsburg Volunteer Fire Department, Madison Fire Department, Mayodan Fire Department, Oregon Hill Volunteer Fire Department, Yancey Road Volunteer Fire Department,  Stoneville Volunteer Fire Department, Shiloh Volunteer Fire Department, North West Volunteer Fire Department, Bethany Volunteer Fire Department, Huntsville Volunteer Fire Department, Jacobs Creek Volunteer Fire Department, Stokes County Volunteer Fire Department, Summerfield Volunteer Fire Department, Stokesdale Volunteer Fire Department, Leaksville Volunteer Fire Department, Draper Volunteer Fire Department, Brosville Volunteer Fire Department, Ridgeway Volunteer Fire Department, Cascade Volunteer Fire Department, Horse Pasture Volunteer Fire and Eden Rescue Squad.