More than 100 firefighters tackled a huge blaze at a disused Bradford mill which caused homes in two neighbouring streets to be evacuated.
Engineers will assess the damaged building and nearby houses
Fire crews were called to Illingworth Mills in Hollings Road, Manningham, in the early hours. The damage has left the building close to collapse.
Twenty residents in Hollings Road and Fearnside Terrace were told to leave.
Seven of them, including a baby, have been housed at an emergency shelter at the nearby Richard Dunn sports centre.
Homes 'at risk'
A West Yorkshire Fire Service spokesman said: "This is one of the largest fires we have had to deal with so far this year.
"There were risks to surrounding properties because it is a built-up area so we have asked local residents to leave their homes and the council has helped to relocate some of them."
It is feared some of the houses may have been damaged by the fire.
Mike Powell, of the city council's emergency planning team, said local authority engineers would inspect the houses once the wrecked mill had been made safe.