A system and method of treating a fluid to be used for hydraulic fracturing adds an effective amount of chlorine dioxide to the fluid to act as a biocide that kills harmful bacteria. A system for adding chlorine dioxide to the fluid can continuously add chlorine dioxide to an incoming flow of the fluid to produce a continuous flow of treated fluid.