In this reaction, baking soda acts as a base, and takes a proton from vinegar, which is an acid. The reaction releases gas because when the baking soda receives the proton, it transforms into water and carbon dioxide.