About 50 firefighters from 11 units battled a fire in a tyre factory in Bayswater early this morning.
The fire near the corner of Wotton Street and Beechboro Road was reported just before 5am.
Thick black smoke from the fire at Top Line Tyres was sent over neighbouring areas and residents were told to stay inside, but the fire is now under control and smoke is no longer a problem.
All roads have been reopened.
It is believed the factory contained about 5000 tyres. It is understood there is no structural damage to the building.
Earlier this morning workers gathered at police roadblocks but were not able to start work.
Domenic Zangari, who lives next door to the factory, was woken by his dog Buster when the fire started.
"I was asleep and the dog started barking so I told him to 'shut up', I got up to look out the front and heard a big explosion," he said.
"I thought it was a big container getting dropped off but I looked around and saw the big flames. As I looked, there was a couple more explosions."
Mr Zangari said he alerted fire crews and the factory owner and evacuated his home.
He was grateful to his dog for waking him.
"He's a good dog. Had it not been for Buster, who knows," he said.
He said authorities did not believe his home had been damaged in the fire.
The Department of Fire and Emergency Services says people between Collier and Walter Road and people travelling on Tonkin Highway in the City of Bayswater were affected by smoke.
Fifty firefighters are on the scene, including crews from Kiara, Malaga, Belmont, Perth, Midland and Wangara. Firefighters are using detection equipment to identify the chemicals and thermal imaging cameras to find the source of the fire.
"Department of Environment and Regulation Pollution Response Unit have been alerted to the incident," DFES said.
The cause of the fire is not known.
People are asked to report any suspicious behaviour to Police Crime Stoppers on 1800 333 000.