Sodium bicarbonate is a fundamental component of baking powder. When moistened, the acid and sodium bicarbonate react to produce carbon dioxide gas, which creates bubbles (leavening) in doughs and batters.