Wildlife photographer Paul Quagliana captured the colony firing the acid into the air in Wareham Forest, Dorset.
"As a defence mechanism they squirt formic acid which smells a bit like salt and vinegar crisps or fish and chips.
"It doesn't hurt but it stinks and I imagine if it was to get in your eyes it would probably sting.”