Four fire engines and around 25 firefighters were called to a fire at suspected cannabis factory on Wadsworth Road in Perivale.
Part of a single-storey industrial unit was damaged by the fire. There were no reports of any injuries.
A London Fire Brigade spokesperson said: “Cannabis factory fires can be particularly dangerous because of the way criminals use unsafe wiring to illegally obtain electricity in order to grow the plants.
"They're often in top floors or lofts which means when a fire takes hold it spreads, destroying roofs and damaging neighbouring buildings.
"Firefighters can also be exposed to risks when dealing with the fires because of bad wiring and traps at some of the properties.
"It's important that people know the key signs and inform the police so that they can act swiftly to prevent these dangerous fires from happening."
The Brigade was called at 1355 and the fire was under control by 1549. Crews from Park Royal, Ealing, Acton and Wembley fire stations were at the scene.
The cause of the fire is under investigation by the Brigade and the Metropolitan Police Service.