Barium chlorate in some sodium contamination, which is undesirable for pyrotechnic purposes, where the strong yellow of sodium can easily overpower the green of barium. Sodium-free barium chlorate can be produced directly through electrolysis: It can also be produced by the reaction of barium carbonate with boiling ammonium chlorate solution: The reaction initially produces barium chlorate and ammonium carbonate; boiling the solution decomposes the ammonium carbonate and drives off the resulting ammonia and carbon dioxide, leaving only barium chlorate in solution. When exposed to heat, barium chlorate alone will decompose to barium chloride and oxygen: Barium chlorate is used to produce chloric
Potassium chlorate chlorate can react with sulfuric acid to form a highly reactive solution of chloric acid and potassium sulfate: The solution so produced is sufficiently reactive that it spontaneously ignites if combustible material (sugar, paper, etc.) is present. In schools, molten potassium chlorate is used in the dramatic screaming jelly babies demonstration. In chemical labs it is used to oxidize HCl and release small amounts of gaseous chlorine. Insurgents in Afghanistan also use potassium chlorate extensively as a key component in the production of improvised explosive devices. When significant effort was made to reduce the availability of ammonium nitrate fertilizer in