A malfunctioning fire-suppression system caused a foamy mess on Saturday morning inside a hangar at Pearson International Airport near Toronto.

Police say a foam machine started pumping out fire-suppressing suds at 8:40 a.m. ET.

By the time it was finished, the fluffy bubbles were stacked as high as six metres.

Police say the suds also spilled out of the hangar and covered an area the size of two to three football fields.

"It's quite a scene when it starts blowing around," said Cost. Rachel Gibbs of Peel Regional Police.

Crews were busy cleaning up the mess all morning. They're also hoping for a little help from mother nature.

"They're going to be trying to vacuum some of the foam," Gibbs said. "And apparently water will also suppress the foam, so if it rains that will be beneficial."

The foam is made up of 98 per cent water, with a two per cent chemical solution.